mirror of https://github.com/tc39/test262.git
add esid to array/prototype/sort tests
This commit is contained in:
parent
474237a725
commit
7c3675494a
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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)
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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
|
||||
---*/
|
||||
|
|
|
@ -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"
|
||||
---*/
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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".
|
||||
|
|
Loading…
Reference in New Issue