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: >
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
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.1_T1
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
ToString(j), return 1. If this object does not have a property
named by ToString(k), return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.2_T1
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
ToString(j), return 1. If this object does not have a property
named by ToString(k), return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.2_T2
description: If comparefn is not undefined
---*/

View File

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

View File

@ -5,6 +5,7 @@
info: >
If [[Get]] ToString(j) 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
description: If comparefn is undefined, use SortCompare operator
---*/

View File

@ -5,6 +5,7 @@
info: >
If [[Get]] ToString(j) 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
description: If comparefn is not undefined
---*/

View File

@ -3,6 +3,7 @@
/*---
info: If comparefn is undefined, use SortCompare operator
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A1.5_T1
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;
return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.1_T1
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;
return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.1_T2
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;
return -1
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A2.1_T3
description: Checking ToString operator
---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,6 +3,7 @@
/*---
info: "[[Get]], [[Delete]] from not an inherited property"
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A6_T2
description: >
[[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
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A7.7
description: >
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)
esid: sec-array.prototype.sort
es5id: 15.4.4.11_A8
description: comparefn tests that its this value is undefined
flags: [noStrict]

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.sort
description: >
Array.prototype.sort does not change non-existent elements to
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.
/*---
esid: sec-array.prototype.sort
es6id: 22.1.3.24
description: >
Array.prototype.sort.name is "sort".