add esid to array/prototype/sort tests

This commit is contained in:
deathbearbrown 2017-06-30 14:08:13 -07:00 committed by Rick Waldron
parent 474237a725
commit 7c3675494a
23 changed files with 86 additions and 63 deletions

View File

@ -5,6 +5,7 @@
info: > info: >
If this object does not have a property named by ToString(j), 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 and this object does not have a property named by ToString(k), return +0
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.1_T1 es5id: 15.4.4.11_A1.1_T1
description: If comparefn is undefined, use SortCompare operator description: If comparefn is undefined, use SortCompare operator
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
If this object does not have a property named by If this object does not have a property named by
ToString(j), return 1. If this object does not have a property ToString(j), return 1. If this object does not have a property
named by ToString(k), return -1 named by ToString(k), return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.2_T1 es5id: 15.4.4.11_A1.2_T1
description: If comparefn is undefined, use SortCompare operator description: If comparefn is undefined, use SortCompare operator
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
If this object does not have a property named by If this object does not have a property named by
ToString(j), return 1. If this object does not have a property ToString(j), return 1. If this object does not have a property
named by ToString(k), return -1 named by ToString(k), return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.2_T2 es5id: 15.4.4.11_A1.2_T2
description: If comparefn is not undefined description: If comparefn is not undefined
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If [[Get]] ToString(j) and [[Get]] ToString(k) If [[Get]] ToString(j) and [[Get]] ToString(k)
are both undefined, return +0 are both undefined, return +0
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.3_T1 es5id: 15.4.4.11_A1.3_T1
description: If comparefn is undefined, use SortCompare operator description: If comparefn is undefined, use SortCompare operator
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If [[Get]] ToString(j) is undefined, return 1. If [[Get]] ToString(j) is undefined, return 1.
If [[]Get] ToString(k) is undefined, return -1 If [[]Get] ToString(k) is undefined, return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.4_T1 es5id: 15.4.4.11_A1.4_T1
description: If comparefn is undefined, use SortCompare operator description: If comparefn is undefined, use SortCompare operator
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
If [[Get]] ToString(j) is undefined, return 1. If [[Get]] ToString(j) is undefined, return 1.
If [[]Get] ToString(k) is undefined, return -1 If [[]Get] ToString(k) is undefined, return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.4_T2 es5id: 15.4.4.11_A1.4_T2
description: If comparefn is not undefined description: If comparefn is not undefined
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: If comparefn is undefined, use SortCompare operator info: If comparefn is undefined, use SortCompare operator
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.5_T1 es5id: 15.4.4.11_A1.5_T1
description: Checking sort() and sort(undefined) description: Checking sort() and sort(undefined)
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1.
If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1;
return -1 return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.1_T1 es5id: 15.4.4.11_A2.1_T1
description: Checking ENGLISH ALPHABET description: Checking ENGLISH ALPHABET
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1.
If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1;
return -1 return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.1_T2 es5id: 15.4.4.11_A2.1_T2
description: Checking RUSSIAN ALPHABET description: Checking RUSSIAN ALPHABET
---*/ ---*/

View File

@ -6,6 +6,7 @@ info: >
If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1. If ToString([[Get]] ToString(j)) < ToString([[Get]] ToString(k)), return -1.
If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1; If ToString([[Get]] ToString(j)) > ToString([[Get]] ToString(k)), return 1;
return -1 return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.1_T3 es5id: 15.4.4.11_A2.1_T3
description: Checking ToString operator description: Checking ToString operator
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: My comparefn is inverse implementation comparefn info: My comparefn is inverse implementation comparefn
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.2_T1 es5id: 15.4.4.11_A2.2_T1
description: Checking ENGLISH ALPHABET description: Checking ENGLISH ALPHABET
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: My comparefn is inverse implementation comparefn info: My comparefn is inverse implementation comparefn
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.2_T2 es5id: 15.4.4.11_A2.2_T2
description: Checking RUSSIAN ALPHABET description: Checking RUSSIAN ALPHABET
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: My comparefn is inverse implementation comparefn info: My comparefn is inverse implementation comparefn
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.2_T3 es5id: 15.4.4.11_A2.2_T3
description: Checking ToString operator description: Checking ToString operator
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
The sort function is intentionally generic. The sort function is intentionally generic.
It does not require that its this value be an Array object It does not require that its this value be an Array object
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A3_T1 es5id: 15.4.4.11_A3_T1
description: If comparefn is undefined, use SortCompare operator description: If comparefn is undefined, use SortCompare operator
---*/ ---*/

View File

@ -5,6 +5,7 @@
info: > info: >
The sort function is intentionally generic. The sort function is intentionally generic.
It does not require that its this value be an Array object It does not require that its this value be an Array object
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A3_T2 es5id: 15.4.4.11_A3_T2
description: If comparefn is not undefined description: If comparefn is not undefined
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Check ToLength(length) for non Array objects info: Check ToLength(length) for non Array objects
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A4_T3 es5id: 15.4.4.11_A4_T3
description: length = -4294967294 description: length = -4294967294
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Array.sort should not eat exceptions info: Array.sort should not eat exceptions
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A5_T1 es5id: 15.4.4.11_A5_T1
description: comparefn function throw "error" description: comparefn function throw "error"
---*/ ---*/

View File

@ -3,6 +3,7 @@
/*--- /*---
info: "[[Get]], [[Delete]] from not an inherited property" info: "[[Get]], [[Delete]] from not an inherited property"
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A6_T2 es5id: 15.4.4.11_A6_T2
description: > description: >
[[Prototype]] of Array instance is Array.prototype, [[Prototype] [[Prototype]] of Array instance is Array.prototype, [[Prototype]

View File

@ -3,6 +3,7 @@
/*--- /*---
info: The sort property of Array can't be used as constructor info: The sort property of Array can't be used as constructor
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A7.7 es5id: 15.4.4.11_A7.7
description: > description: >
If property does not implement the internal [[Construct]] method, If property does not implement the internal [[Construct]] method,

View File

@ -3,6 +3,7 @@
/*--- /*---
info: Call the comparefn passing undefined as the this value (step 13b) info: Call the comparefn passing undefined as the this value (step 13b)
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A8 es5id: 15.4.4.11_A8
description: comparefn tests that its this value is undefined description: comparefn tests that its this value is undefined
flags: [noStrict] flags: [noStrict]

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.sort
description: > description: >
The SortCompare abstract operation calls ToString() for identical The SortCompare abstract operation calls ToString() for identical
elements (step 14/15) elements (step 14/15)

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.sort
description: > description: >
Array.prototype.sort does not change non-existent elements to Array.prototype.sort does not change non-existent elements to
undefined elements, that means holes are preserved (cf. spec text undefined elements, that means holes are preserved (cf. spec text

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.sort
es6id: 22.1.3.24 es6id: 22.1.3.24
description: > description: >
Array.prototype.sort.name is "sort". Array.prototype.sort.name is "sort".