diff options
Diffstat (limited to 'test/suite/ch15/15.4/15.4.4/15.4.4.11')
28 files changed, 160 insertions, 233 deletions
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.1_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.1_T1.js index fe46045b6..24e8e6064 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.1_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.1_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If this object does not have a property named by ToString(j), - * and this object does not have a property named by ToString(k), return +0 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.1_T1.js - * @description If comparefn is undefined, use SortCompare operator - */ +/*--- +info: > + If this object does not have a property named by ToString(j), + and this object does not have a property named by ToString(k), return +0 +description: If comparefn is undefined, use SortCompare operator +---*/ var x = new Array(2); x.sort(); @@ -25,5 +24,4 @@ if (x[0] !== undefined) { //CHECK#3 if (x[1] !== undefined) { $ERROR('#3: var x = new Array(2); x.sort(); x[1] === undefined. Actual: ' + (x[1])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T1.js index d1e818de0..a85f6b4ab 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If this object does not have a property named by - * ToString(j), return 1. If this object does not have a property - * named by ToString(k), return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T1.js - * @description If comparefn is undefined, use SortCompare operator - */ +/*--- +info: > + If this object does not have a property named by + ToString(j), return 1. If this object does not have a property + named by ToString(k), return -1 +description: If comparefn is undefined, use SortCompare operator +---*/ var x = new Array(2); x[1] = 1; @@ -46,5 +45,4 @@ if (x[0] !== 1) { //CHECK#6 if (x[1] !== undefined) { $ERROR('#6: var x = new Array(2); x[0] = 1; x.sort(); x[1] === undefined. Actual: ' + (x[1])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T2.js index 6b551359c..41589771b 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If this object does not have a property named by - * ToString(j), return 1. If this object does not have a property - * named by ToString(k), return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.2_T2.js - * @description If comparefn is not undefined - */ +/*--- +info: > + If this object does not have a property named by + ToString(j), return 1. If this object does not have a property + named by ToString(k), return -1 +description: If comparefn is not undefined +---*/ var myComparefn = function(x,y) { if (x === undefined) return -1; @@ -52,5 +51,4 @@ if (x[0] !== 1) { //CHECK#6 if (x[1] !== undefined) { $ERROR('#6: var x = new Array(2); x[0] = 1; x.sort(myComparefn); x[1] === undefined. Actual: ' + (x[1])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.3_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.3_T1.js index 44a1d548a..c78598af1 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.3_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.3_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If [[Get]] ToString(j) and [[Get]] ToString(k) - * are both undefined, return +0 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.3_T1.js - * @description If comparefn is undefined, use SortCompare operator - */ +/*--- +info: > + If [[Get]] ToString(j) and [[Get]] ToString(k) + are both undefined, return +0 +description: If comparefn is undefined, use SortCompare operator +---*/ var x = new Array(undefined, undefined); x.sort(); @@ -25,5 +24,4 @@ if (x[0] !== undefined) { //CHECK#3 if (x[1] !== undefined) { $ERROR('#3: var x = new Array(undefined, undefined); x.sort(); x[1] === undefined. Actual: ' + (x[1])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T1.js index 2341ae248..2ef589f71 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If [[Get]] ToString(j) is undefined, return 1. - * If [[]Get] ToString(k) is undefined, return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T1.js - * @description If comparefn is undefined, use SortCompare operator - */ +/*--- +info: > + If [[Get]] ToString(j) is undefined, return 1. + If [[]Get] ToString(k) is undefined, return -1 +description: If comparefn is undefined, use SortCompare operator +---*/ var x = new Array(undefined, 1); x.sort(); @@ -43,5 +42,4 @@ if (x[0] !== 1) { //CHECK#6 if (x[1] !== undefined) { $ERROR('#6: var x = new Array(1, undefined); x.sort(); x[1] === undefined. Actual: ' + (x[1])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T2.js index 377d34649..5e3f96aaf 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If [[Get]] ToString(j) is undefined, return 1. - * If [[]Get] ToString(k) is undefined, return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.4_T2.js - * @description If comparefn is not undefined - */ +/*--- +info: > + If [[Get]] ToString(j) is undefined, return 1. + If [[]Get] ToString(k) is undefined, return -1 +description: If comparefn is not undefined +---*/ var myComparefn = function(x,y) { if (x === undefined) return -1; @@ -49,5 +48,4 @@ if (x[0] !== 1) { //CHECK#6 if (x[1] !== undefined) { $ERROR('#6: var x = new Array(1, undefined); x.sort(myComparefn); x[1] === undefined. Actual: ' + (x[1])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.5_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.5_T1.js index af706b728..1f9b3b33d 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.5_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.5_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If comparefn is undefined, use SortCompare operator - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A1.5_T1.js - * @description Checking sort() and sort(undefined) - */ +/*--- +info: If comparefn is undefined, use SortCompare operator +description: Checking sort() and sort(undefined) +---*/ var x = new Array(1,0); x.sort(); @@ -43,4 +41,3 @@ if (x[0] !== 0) { if (x[1] !== 1) { $ERROR('#6: var x = new Array(1,0); x.sort(undefined); x[1] === 1. Actual: ' + (x[1])); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T1.js index 305ca44c2..6cfe0f734 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * * If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. - * If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; - * return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T1.js - * @description Checking ENGLISH ALPHABET - */ +/*--- +info: > + If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. + If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; + return -1 +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"]; @@ -23,4 +22,3 @@ for (var i = 0; i < 26; i++) { if (result !== true) { $ERROR('#1: CHECK ENGLISH ALPHABET'); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T2.js index 53ee4656b..04a879c5d 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * * If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. - * If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; - * return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T2.js - * @description Checking RUSSIAN ALPHABET - */ +/*--- +info: > + If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. + If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; + return -1 +description: Checking RUSSIAN ALPHABET +---*/ var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"]; var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; @@ -23,4 +22,3 @@ for (var i = 0; i < 26; i++) { if (result !== true) { $ERROR('#1: CHECK RUSSIAN ALPHABET'); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T3.js index 50a138c1e..0ce626518 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T3.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * * If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. - * If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; - * return -1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.1_T3.js - * @description Checking ToString operator - */ +/*--- +info: > + If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. + If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; + return -1 +description: Checking ToString operator +---*/ var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity]; @@ -26,4 +25,3 @@ for (var i = 0; i < 10; i++) { if (result !== true) { $ERROR('#1: Check ToString operator'); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T1.js index e228074ed..c8c22e37b 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * My comparefn is inverse implementation comparefn - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T1.js - * @description Checking ENGLISH ALPHABET - */ +/*--- +info: My comparefn is inverse implementation comparefn +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"]; @@ -28,5 +26,4 @@ for (var i = 0; i < 26; i++) { if (result !== true) { $ERROR('#1: CHECK ENGLISH ALPHABET'); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T2.js index 031df25ae..5308ad6d9 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * My comparefn is inverse implementation comparefn - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T2.js - * @description Checking RUSSIAN ALPHABET - */ +/*--- +info: My comparefn is inverse implementation comparefn +description: Checking RUSSIAN ALPHABET +---*/ var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"]; var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; @@ -29,4 +27,3 @@ for (var i = 0; i < 26; i++) { if (result !== true) { $ERROR('#1: CHECK RUSSIAN ALPHABET'); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T3.js index e628e0da8..7b9b40452 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T3.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * My comparefn is inverse implementation comparefn - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A2.2_T3.js - * @description Checking ToString operator - */ +/*--- +info: My comparefn is inverse implementation comparefn +description: Checking ToString operator +---*/ var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity]; @@ -32,4 +30,3 @@ for (var i = 0; i < 10; i++) { if (result !== true) { $ERROR('#1: Check ToString operator'); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T1.js index e3b985d03..6433c7b50 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The sort function is intentionally generic. - * It does not require that its this value be an Array object - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T1.js - * @description If comparefn is undefined, use SortCompare operator - */ +/*--- +info: > + The sort function is intentionally generic. + It does not require that its this value be an Array object +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}; @@ -33,5 +32,4 @@ for (var i = 0; i < 10; i++) { if (result !== true) { $ERROR('#1: Check ToString operator'); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T2.js index eeadc3729..abe46e9fc 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The sort function is intentionally generic. - * It does not require that its this value be an Array object - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A3_T2.js - * @description If comparefn is not undefined - */ +/*--- +info: > + The sort function is intentionally generic. + It does not require that its this value be an Array object +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}; @@ -41,5 +40,4 @@ for (var i = 0; i < 10; i++) { if (result !== true) { $ERROR('#1: Check ToString operator'); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T1.js index 0f63d801c..3a211a260 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Check ToUint32(length) for non Array objects - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T1.js - * @description length = 4294967296 - */ +/*--- +info: Check ToUint32(length) for non Array objects +description: length = 4294967296 +---*/ var obj = {}; obj.sort = Array.prototype.sort; @@ -33,4 +31,3 @@ if (obj[0] !== "x") { if (obj[4294967295] !== "y") { $ERROR('#4: var obj = {}; obj.sort = Array.prototype.sort; obj[] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.sort(); obj[4294967295] == "y"'); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T2.js index 4116c648f..cabfd9476 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Check ToUint32(length) for non Array objects - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T2.js - * @description length = 4294967298 - */ +/*--- +info: Check ToUint32(length) for non Array objects +description: length = 4294967298 +---*/ var obj = {}; obj.sort = Array.prototype.sort; @@ -38,5 +36,4 @@ if (obj[1] !== "z") { //CHECK#5 if (obj[4294967297] !== "x") { $ERROR('#5: var obj = {}; obj.sort = Array.prototype.sort; obj[0] = "z"; obj[1] = "y"; obj[4294967297] = "x"; obj.length = 4294967298; obj.sort(); obj[4294967297] === "x". Actual: ' + (obj[4294967297])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T3.js index fe5d5de94..6eb6d069c 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T3.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Check ToUint32(length) for non Array objects - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A4_T3.js - * @description length = -4294967294 - */ +/*--- +info: Check ToUint32(length) for non Array objects +description: length = -4294967294 +---*/ var obj = {}; obj.sort = Array.prototype.sort; @@ -38,5 +36,4 @@ if (obj[1] !== "z") { //CHECK#5 if (obj[2] !== "x") { $ERROR('#5: var obj = {}; obj.sort = Array.prototype.sort; obj[0] = "z"; obj[1] = "y"; obj[2] = "x"; obj.length = -4294967294; obj.sort(); obj[2] === "x". Actual: ' + (obj[2])); -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A5_T1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A5_T1.js index a7e363e73..5be9c4961 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A5_T1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A5_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Array.sort should not eat exceptions - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A5_T1.js - * @description comparefn function throw "error" - */ +/*--- +info: Array.sort should not eat exceptions +description: comparefn function throw "error" +---*/ //CHECK#1 var myComparefn = function(x,y) { @@ -20,5 +18,4 @@ try { if (e !== "error") { $ERROR('#1.2: Array.sort should not eat exceptions'); } -} - +} diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A6_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A6_T2.js index af563e675..f24026c47 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A6_T2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A6_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * [[Get]], [[Delete]] from not an inherited property - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A6_T2.js - * @description [[Prototype]] of Array instance is Array.prototype, [[Prototype] of Array.prototype is Object.prototype - */ +/*--- +info: "[[Get]], [[Delete]] from not an inherited property" +description: > + [[Prototype]] of Array instance is Array.prototype, [[Prototype] + of Array.prototype is Object.prototype +---*/ Array.prototype[1] = -1; var x = [1,0]; @@ -63,4 +63,3 @@ if (x[0] !== undefined) { if (x[1] !== -1) { $ERROR('#8: Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.sort = Array.prototype.sort; x = {0:1,1:0}; x.sort(); delete x[0]; delete x[1]; x[1] === -1. Actual: ' + (x[1])); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.1.js index bd12a9c23..d28fac393 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.1.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of sort has the attribute DontEnum - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.1.js - * @description Checking use propertyIsEnumerable, for-in - */ +/*--- +info: The length property of sort has the attribute DontEnum +description: Checking use propertyIsEnumerable, for-in +---*/ //CHECK#1 if (Array.prototype.sort.propertyIsEnumerable('length') !== false) { @@ -24,5 +22,3 @@ for (var p in Array.sort){ if (result !== true) { $ERROR('#2: result = true; for (p in Array.sort) { if (p === "length") result = false; } result === true;'); } - - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.2.js index 891643550..907204724 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.2.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of sort has the attribute DontDelete - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.2.js - * @description Checking use hasOwnProperty, delete - * @noStrict - */ +/*--- +info: The length property of sort has the attribute DontDelete +description: Checking use hasOwnProperty, delete +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#1 if (Array.prototype.sort.hasOwnProperty('length') !== true) { @@ -25,6 +24,3 @@ if (Array.prototype.sort.hasOwnProperty('length') !== true) { if (Array.prototype.sort.length === undefined) { $ERROR('#3: delete Array.prototype.sort.length; Array.prototype.sort.length !== undefined'); } - - - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.3.js index 927d9e050..d992679d3 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.3.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.3.js @@ -1,13 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of sort has the attribute ReadOnly - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.3.js - * @description Checking if varying the length fails - * @noStrict - */ +/*--- +info: The length property of sort has the attribute ReadOnly +description: Checking if varying the length fails +flags: [noStrict] +---*/ //CHECK#1 var x = Array.prototype.sort.length; @@ -15,5 +13,3 @@ Array.prototype.sort.length = Infinity; if (Array.prototype.sort.length !== x) { $ERROR('#1: x = Array.prototype.sort.length; Array.prototype.sort.length = Infinity; Array.prototype.sort.length === x. Actual: ' + (Array.prototype.sort.length)); } - - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.4.js index 6f52f6c1f..5c90adf16 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.4.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.4.js @@ -1,16 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of sort is 1 - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.4.js - * @description sort.length === 1 - */ +/*--- +info: The length property of sort is 1 +description: sort.length === 1 +---*/ //CHECK#1 if (Array.prototype.sort.length !== 1) { $ERROR('#1: Array.prototype.sort.length === 1. Actual: ' + (Array.prototype.sort.length)); } - - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.5.js index 989680b75..4ac3919e1 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.5.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The sort property of Array has the attribute DontEnum - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.5.js - * @description Checking use propertyIsEnumerable, for-in - */ +/*--- +info: The sort property of Array has the attribute DontEnum +description: Checking use propertyIsEnumerable, for-in +---*/ //CHECK#1 if (Array.propertyIsEnumerable('sort') !== false) { @@ -24,5 +22,3 @@ for (var p in Array){ if (result !== true) { $ERROR('#2: result = true; for (p in Array) { if (p === "sort") result = false; } result === true;'); } - - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.6.js index cacf2c7d3..1b8b87e87 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.6.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.6.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The sort property of Array has not prototype property - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.6.js - * @description Checking Array.prototype.sort.prototype - */ +/*--- +info: The sort property of Array has not prototype property +description: Checking Array.prototype.sort.prototype +---*/ //CHECK#1 if (Array.prototype.sort.prototype !== undefined) { $ERROR('#1: Array.prototype.sort.prototype === undefined. Actual: ' + (Array.prototype.sort.prototype)); } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.7.js index f43c0eba0..42711b1e5 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.7.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The sort property of Array can't be used as constructor - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A7.7.js - * @description If property does not implement the internal [[Construct]] method, throw a TypeError exception - */ +/*--- +info: The sort property of Array can't be used as constructor +description: > + If property does not implement the internal [[Construct]] method, + throw a TypeError exception +---*/ //CHECK#1 @@ -18,4 +18,3 @@ try { $ERROR('#1.2: new Array.prototype.sort() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A8.js index 8d4169ade..f98e67b23 100644 --- a/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A8.js +++ b/test/suite/ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A8.js @@ -1,13 +1,12 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Call the comparefn passing undefined as the this value (step 13b) - * - * @path ch15/15.4/15.4.4/15.4.4.11/S15.4.4.11_A8.js - * @description comparefn tests that its this value is undefined - * @onlyStrict - */ +/*--- +info: Call the comparefn passing undefined as the this value (step 13b) +description: comparefn tests that its this value is undefined +flags: [onlyStrict] +includes: [$FAIL.js] +---*/ var global = this; [2,3].sort(function(x,y) { @@ -22,4 +21,3 @@ var global = this; } return x - y; }); - |