Jordan Harband
f1c1b33b53
Array.prototype.sort and %TypedArray%.prototype.sort should throw on a non-undefined non-function ( #1059 )
...
Per https://github.com/tc39/ecma262/pull/785/
2017-06-12 19:21:33 -03:00
André Bargull
d59e30c95e
Remove execute bit from files ( #976 )
2017-04-13 16:24:07 -04:00
Choongwoo Han
ab9738c471
Tests for using internal byteOffset in TypedArray.prototype.set ( #944 )
2017-04-06 12:04:09 -04:00
littledan
32e129676e
Test for TypedArray.prototype.fill semantics change ( #927 )
...
The change is proposed in https://github.com/tc39/ecma262/pull/856
as a fix to https://github.com/tc39/ecma262/issues/855
Here, the ToNumber coercion is done only once, rather than on each
iteration. It does not appear that there were previously any
tests against repeated coercion for this parameter previously.
Tested this test against V8, which failed, as V8 implements the
current spec rather than the proposed one.
2017-03-27 13:50:38 -04:00
André Bargull
878d382eb9
Fix typos in built-ins/TypedArray/prototype/copyWithin
2017-02-22 18:11:25 +01:00
André Bargull
bb369e1e7c
Fix typo in TypedArray test with SharedArrayBuffers
2017-02-22 18:04:51 +01:00
⭐caitp⭐
be0964c8ff
Add tests for %TypedArray%.prototype.copyWithin() with target/start/end=Infinity ( #849 )
...
ToInteger can result in the values +Infinity and -Infinity.
2017-02-13 13:51:45 -08:00
Shu-yu Guo
a72ee6d912
SharedArrayBuffer and Atomics tests ( #839 )
2017-02-07 11:17:31 -05:00
Leonardo Balter
6fcbfaf0f0
Assert TypedArray iterators inherit from ArrayPrototypeIterator
2016-07-05 16:29:22 -04:00
Leonardo Balter
6497c1f5cc
Merge tests for TypedArrays#length when this is not object
2016-07-05 16:29:20 -04:00
Leonardo Balter
d190e700f3
Add bit-precision tests for TypedArray#copyWithin
2016-07-05 16:20:16 -04:00
Leo Balter
e49d2661a8
Improve assertions comparing values to NaN ( #690 )
...
The global isNaN is not precise at all, and Number.isNaN is an ES6 feature that makes it preferrable to use assert's sameValue for NaN values, as it handles it internally using the comparison.
2016-07-01 11:22:55 -07:00
Leonardo Balter
f912927b1f
[TypedArrays] Apply code consistency fixes after checks with JSHint
2016-05-27 15:59:14 -04:00
Leonardo Balter
56b988883e
Add tests for %TypedArray%.prototype.includes
2016-05-25 10:31:55 -04:00
Leonardo Balter
bc42c6ab5c
Add harness for byte conversion values
...
Update testTypedArrayConversions to require byteConversionValues
2016-05-25 10:10:50 -04:00
jugglinmike
332be5b8bc
Correct test for NaN canonicalization ( #640 )
...
Because implementations are free to select any valid NaN value during
GetValueFromBuffer, tests concerning semantics for consistent NaN value
encoding cannot rely on values returned from that abstract operation.
Update the test for `%TypedArray%.prototype.map` to set the same NaN
values via `map` as set in the "control" array.
2016-05-17 14:30:53 -04:00
Leonardo Balter
a0cd3b07fc
Add tests for TypedArrays sort
2016-05-12 10:26:42 -04:00
Leonardo Balter
2c7c989439
Add tests for TypedArrays set
2016-05-12 10:19:58 -04:00
jugglinmike
b17ffc0298
Add tests for NaN handling with Typed Arrays ( #623 )
...
Ensure that NaN values are canonicalized consistently by all invocations
of SetValueInBuffer. Also ensure that `%TypedArray%.prototype.set` and
`%TypedArray%.prototype.slice` preserve the bit-level encoding of the
source data.
Use a set of experimentally-derived expressions known to produce NaN
values with distinct bit patterns in various platforms.
2016-05-12 10:16:03 -04:00
Leonardo Balter
bace781a5b
Add tests for TypedArrays slice
2016-05-09 17:27:56 -04:00
Leonardo Balter
ba31c4da9c
s/interaction/iteration on TypedArray.prototype methods
2016-05-06 09:51:08 -04:00
Leonardo Balter
dfbf33b3ac
Add tests for TypedArrays reduce and reduceRight
2016-05-06 09:50:51 -04:00
Leonardo Balter
800300e120
Add tests for TypedArrays reverse
2016-05-05 16:59:25 -04:00
Leonardo Balter
19c09e95d9
Add tests for TypedArrays join
2016-05-05 16:59:25 -04:00
Leonardo Balter
e6f4b20834
Add tests for TypedArrays filter
2016-05-05 15:16:26 -04:00
Leonardo Balter
177b2f6018
Add tests for TypedArrays toLocaleString
2016-04-29 09:39:32 -04:00
Gorkem Yakin
84d95077d0
Merge branch 'bocoup/ta-foreach-map-update'
2016-04-26 09:26:03 -07:00
Leonardo Balter
afd44fc87a
Update tests for TypedArrays foreach and map
...
Based on the feedback from gh-593
2016-04-26 09:23:58 -07:00
Gorkem Yakin
851be6108a
Merge branch 'bocoup/ta-subarray'
2016-04-25 16:53:20 -07:00
Leonardo Balter
1f9cc0b0c0
Add tests for TypedArrays subarray
2016-04-25 16:52:20 -07:00
Gorkem Yakin
35c00cab92
Merge branch 'bocoup/ta-every-some'
2016-04-25 10:46:38 -07:00
Leonardo Balter
45ff661f75
Add tests for TypedArrays some
2016-04-25 10:46:22 -07:00
Leonardo Balter
3339406dd7
Add tests for TypedArrays every
2016-04-25 10:46:16 -07:00
Gorkem Yakin
a4fd0dc8f4
Merge branch 'bocoup-ta-interoperability'
2016-04-25 10:37:06 -07:00
Leonardo Balter
866626500c
Update tests for TypedArrays/DataView non-interoperable get accessor methods
...
Fixes gh-582
2016-04-25 10:36:50 -07:00
Gorkem Yakin
c26ef14ae0
Merge branch 'bocoup/ta-indexof'
2016-04-25 10:32:22 -07:00
Leonardo Balter
d1f02d0fb8
Add tests for TypedArrays lastIndexOf
2016-04-25 10:31:42 -07:00
Leonardo Balter
d46b0b1860
Add tests for TypedArrays indexOf
2016-04-25 10:31:38 -07:00
Leonardo Balter
bc0a40c51c
Add tests for TypedArrays findIndex
2016-04-25 11:43:19 -04:00
Leonardo Balter
9aa4dced8d
Add tests for TypedArrays find
2016-04-22 10:34:30 -04:00
Leonardo Balter
bc8ae6e0ae
Fix test for TypedArray.prototype.forEach
2016-04-21 17:22:55 -04:00
Leonardo Balter
88f390d189
Add tests for TypedArrays copyWithin
2016-04-20 14:08:33 -04:00
Leonardo Balter
5e8b661050
Add tests for TypedArrays fill
2016-04-20 14:05:38 -04:00
Leonardo Balter
04a3c28f7d
Add tests for conversion operations on TypedArrays
2016-04-19 12:18:52 -04:00
Leonardo Balter
f3cc1fb983
Add tests for TypedArrays map
2016-04-12 15:41:38 -04:00
Leonardo Balter
e01371e12a
Add tests for TypedArrays forEach
2016-04-12 15:41:34 -04:00
Leonardo Balter
c15079e741
Remove surface tests for %TypedArray%.prototype.toString
...
Because Test262 asserts the strict equality of
`Array.prototype.toString` and `TypedArray.prototype.toString`, tests
for properties of the object do not need to be reproduced in both
location.
Ref gh-526
2016-04-07 11:36:15 -04:00
Leonardo Balter
ce503e638f
Add tests for detached buffer validation on TypedArray methods
2016-03-23 12:13:41 -04:00
Leonardo Balter
7499d3c208
Add missing surface tests for %TypedArray%.prototype.includes
2016-03-21 14:28:44 -04:00
Leonardo Balter
83b27c9beb
Add validation tests for TypedArray instance methods
2016-03-21 11:04:26 -04:00