jugglinmike
a2b3370b0b
Add tests for additional uses of @@toPrimitive ( #666 )
2016-06-10 15:08:59 -04:00
jugglinmike
ee7496f713
Add tests for usage of IsArray ( #667 )
2016-06-10 15:07:40 -04:00
jugglinmike
f1c9cef154
Add test for NaN in OrdinaryDefineOwnProperty ( #648 )
...
These semantics are currently contested, but the test reflects the
intended behavior of the latest version of the specification.
2016-06-08 12:40:39 -04:00
jugglinmike
07dcff3e27
Add tests for CreateByeDataBlock ( #663 )
...
Ensure that all bytes of newly-created Data Block are initialized to
zero.
2016-06-03 12:38:03 -04:00
Leonardo Balter
c7f9b12cc4
Add tests for Array.prototype.includes
2016-06-01 15:35:00 -04:00
jugglinmike
30d4c04182
Improve test coverage for Symbol ( #645 )
2016-05-30 16:55:45 -04: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
d3effa125f
Add tests for DataView.prototype.setUint32
2016-05-25 10:28:01 -04:00
Leonardo Balter
d672cf24ea
Add tests for DataView.prototype.setUint16
2016-05-25 10:28:00 -04:00
Leonardo Balter
ab494e1e32
Add tests for DataView.prototype.setUint8
2016-05-25 10:28:00 -04:00
Leonardo Balter
88f427b4b9
Add tests for DataView.prototype.setInt32
2016-05-25 10:28:00 -04:00
Leonardo Balter
a9b65bdf2d
Add tests for DataView.prototype.setInt16
2016-05-25 10:28:00 -04:00
Leonardo Balter
138f8b1fdb
Add tests for DataView.prototype.setInt8
2016-05-25 10:27:59 -04:00
Leonardo Balter
1b64789ce0
Add tests for DataView.prototype.setFloat64
2016-05-25 10:27:59 -04:00
Leonardo Balter
da67e6b305
Add tests for DataView.prototype.setFloat32
2016-05-25 10:25:05 -04:00
Leonardo Balter
bc42c6ab5c
Add harness for byte conversion values
...
Update testTypedArrayConversions to require byteConversionValues
2016-05-25 10:10:50 -04:00
Leonardo Balter
9565f013ce
Add tests for DataView.prototype.getUint8
2016-05-19 12:12:13 -04:00
Leonardo Balter
1567b685e2
Add tests for Dataview.prototype.getInt8
2016-05-19 12:12:12 -04:00
Leonardo Balter
5e767dc2bb
Add tests for DataView.prototype.getUint16
2016-05-19 12:12:12 -04:00
Leonardo Balter
673b63e83d
Add tests for DataView.prototype.getInt16
2016-05-19 12:12:12 -04:00
Leonardo Balter
7f8e559cda
Add tests for DataView.prototype.getUint32
2016-05-19 12:12:11 -04:00
Leonardo Balter
0d5b6ea20c
Add tests for DataView.prototype.getInt32
2016-05-19 12:12:10 -04:00
Leonardo Balter
c1cdf88281
Add tests for DataView.prototype.getFloat64
2016-05-19 12:12:10 -04:00
Leonardo Balter
47b323cf89
Add tests for DataView.prototype.getFloat32
2016-05-18 19:07:34 -04:00
Leonardo Balter
89c0a952fd
Add tests for DataView.prototype.byteOffset
2016-05-18 18:58:04 -04:00
Leonardo Balter
339a3527c9
Add tests for DataView.prototype.byteLength
2016-05-18 18:58:04 -04:00
Leonardo Balter
7b529f00cb
Add tests for DataView.prototype.buffer
2016-05-18 18:58:04 -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
ee5356b86a
Add tests for the DataView constructor
2016-05-16 09:50:04 -04:00
Leonardo Balter
3af3af3d40
Add tests for ArrayBuffer.prototype.byteLength
2016-05-12 10:30:17 -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
jugglinmike
d9d3f7cf4f
Update RegExp tests ( #614 )
...
The RegExpBuiltinExec internal operation was modified in March of 2016
[1]: instead of referencing the `global` and `sticky` properties of the
"this" value, the algorithm now infers those values from the object's
[[OriginalFlags]] internal slot.
This change invalidated a number of tests. In cases where the change
resulted in an observable behavior, update the tests to assert the
latest specification text. In cases where the change removed a
previously-observable behavior, remove the files completely.
Specification text change set:
> 1. Assert: Type(_S_) is String.
> 1. Let _length_ be the number of code units in _S_.
> 1. Let _lastIndex_ be ? ToLength(? Get(_R_, `"lastIndex"`)).
> - 1. Let _global_ be ToBoolean(? Get(_R_, `"global"`)).
> - 1. Let _sticky_ be ToBoolean(? Get(_R_, `"sticky"`)).
> + 1. Let _flags_ be the value of _R_'s [[OriginalFlags]] internal slot.
> + 1. If _flags_ contains `"g"`, let _global_ be *true*, else let _global_ be *false*.
> + 1. If _flags_ contains `"y"`, let _sticky_ be *true*, else let _sticky_ be *false*.
> 1. If _global_ is *false* and _sticky_ is *false*, let _lastIndex_ be 0.
> 1. Let _matcher_ be the value of _R_'s [[RegExpMatcher]] internal slot.
> - 1. Let _flags_ be the value of _R_'s [[OriginalFlags]] internal slot.
> 1. If _flags_ contains `"u"`, let _fullUnicode_ be *true*, else let _fullUnicode_ be *false*.
> 1. Let _matchSucceeded_ be *false*.
> 1. Repeat, while _matchSucceeded_ is *false*
[1] https://github.com/tc39/ecma262/pull/494
2016-05-09 19:34:52 -04:00
Leonardo Balter
bace781a5b
Add tests for TypedArrays slice
2016-05-09 17:27:56 -04:00
Ian Halliday
022888be9e
Remove duplicate front matter keys ( #621 )
...
Fixes #620
2016-05-06 13:41:33 -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
jugglinmike
4980fd264e
Add tests for ArraySpeciesCreate ( #600 )
...
Assert the expected behavior of the ArraySpeciesCreate abstract
operation in the 5 Array instance methods from which it is invoked.
This change set does not include tests for ECMAScript realm
considerations because Test262 does not currently expose a mechanism for
interfacing with realms.
2016-05-03 12:42:38 -04:00
Brian Terlson
3d285da73d
Replace duplicate description with info in map test
2016-04-29 10:01:41 -07:00
Leonardo Balter
177b2f6018
Add tests for TypedArrays toLocaleString
2016-04-29 09:39:32 -04:00
Leonardo Balter
9c45e2ac68
Revert "Add `System.global` tests ( #567 )"
...
This reverts commit 45e5fc8889
.
2016-04-27 14:25:15 -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
85e6ab8e15
Merge branch 'bocoup/species-accessor-values'
2016-04-25 16:59:44 -07:00
Mike Pennisi
b8e40a6f3f
Add tests for return value of @@species accessors
2016-04-25 16:59:23 -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
Mike Pennisi
7630e1763d
Re-organize tests for eval
...
Limit tests in `language/expressions/call/` and `built-ins/eval/` to
only assert details that are directly related to the invocation pattern.
Re-organize all other tests within the `language/eval-code/` directory,
further categorizing each as `direct` or `indirect` as appropriate.
Remove the extraneous "executable" flag from those files which carried
it.
2016-04-25 16:36:36 -04:00
Gorkem Yakin
7f88f29328
Merge branch 'bocoup/global-object'
2016-04-25 11:09:49 -07:00
Mike Pennisi
eb644bb2da
Reduce reliance on `fnGlobalObject.js`
...
This harness function is not necessary in the majority of cases in which
it is used. Remove its usage to simplify tests and decrease the amount
of domain-specific knowledge necessary to contribute to the test suite.
Persist the harness function itself for use by future tests for ES2015
modules (such a helper is necessary for tests that are interpreted as
module code).
2016-04-25 11:09:21 -07:00
Gorkem Yakin
562133f4ba
Merge branch 'bocoup/symbol-cleanup'
2016-04-25 10:59:48 -07:00
Mike Pennisi
3d68fcc063
Increase coverage for Symbol constructor
...
Add new tests for invocation requirements; re-organize existing files
according to the language feature under test.
2016-04-25 10:59:22 -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
Gorkem Yakin
a432cde542
Merge pull request #534 from mythrialle/master
...
Removes special handling for UTC timezone in toISOString/15.9.5.43-0-1…
2016-04-25 10:02:19 -07:00
Mythri
664ec78fcc
Moves Date constructor outside of assert, so that it actually tests toISOString
2016-04-25 16:45:03 +01:00
Leonardo Balter
bc0a40c51c
Add tests for TypedArrays findIndex
2016-04-25 11:43:19 -04:00
Mythri
679d02a6ed
Fixed comments
2016-04-25 15:43:55 +01: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
jugglinmike
cf68c3be91
Correct invalid tests for the Date constructor
...
The millisecond representation of a given Date instance is dependent on
the local system's time zone settings. In order to pass consistently
across contexts, tests for this value must take the system configuration
into account.
Introduce a test harness utility function to encapsulate these concerns.
Re-use this function across all test files that assert the exact
millisecond representation of Date instances.
2016-04-19 17:00:59 -04:00
Leonardo Balter
04a3c28f7d
Add tests for conversion operations on TypedArrays
2016-04-19 12:18:52 -04:00
Mike Pennisi
b698c8b3ab
Add tests for Math constants
...
Closes gh-540
Because the specific value of each constant is specified as a
host-defined approximation, only the value type may be enforced by
Test262.
2016-04-18 14:39:37 -04:00
Mike Pennisi
f7aa31b41f
Remove over-specified tests
...
Except for a small set of expected input/output pairs, both ES5 and
ES2015 define the expected return value of these methods in terms of an
"implementation-dependent approximation." This makes it inappropriate to
enforce expectations for specific values, even if expressed imprecisely.
2016-04-18 14:36:49 -04:00
dtig
20d37a6f2f
Add SIMD test suite and utility functions ( #442 )
2016-04-18 14:26:15 -04:00
Leonardo Balter
e451026965
Fix minor typo on a test for Array#fill
2016-04-12 19:48:54 -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
Jordan Harband
45e5fc8889
Add `System.global` tests ( #567 )
2016-04-12 14:37:10 -04:00
Michael Ficarra
6b7cbb5035
add Function.prototype.toString tests, conforming to proposed revision
...
See the proposal at
https://tc39.github.io/Function-prototype-toString-revision/
2016-04-11 14:39:12 -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
Jordan Harband
c95e673feb
Add tests for `String#padStart` and `String#padEnd`.
...
https://github.com/tc39/proposal-string-pad-start-end/issues/23
Closes gh-564
2016-04-06 15:13:52 -04:00
Leonardo Balter
755b0d6117
Add tests for typedArrays extensibility
...
Ref: https://github.com/tc39/test262/pull/536#issuecomment-200455389
2016-04-01 15:34:14 -04:00
Leonardo Balter
3cb20b9df5
Add tests for internal methods of typedArray instances
...
Test specific behaviour for Integer Indexed exotic objects, WRT the
following internal methods:
- [[GetOwnProperty]]
- [[HasProperty]]
- [[DefineOwnProperty]]
- [[Get]]
- [[Set]]
- [[OwnPropertyKeys]]
2016-03-28 10:38:24 -04:00
Leonardo Balter
887b379421
Add tests for ArrayBuffer.isView
2016-03-24 12:14:26 -04:00
Leo Balter
35b93bb5c2
Merge pull request #548 from bocoup/random-fp
...
Avoid false positives
2016-03-24 10:49:44 -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
Leonardo Balter
b26190f1ce
Add tests for TypedArray instance iterator methods
2016-03-21 11:04:25 -04:00
Leo Balter
0000bcd78c
Merge pull request #533 from bocoup/safe-integers
...
Add tests for Number.{MAX,MIN}_SAFE_INTEGER
2016-03-17 17:32:38 -04:00
Mike Pennisi
6e61c27aa5
Avoid false positives
...
As written, the test for `Math.random` would pass if the runtime
erroneously produced a non-numeric value. Add the necessary assertions
to guard against this case.
2016-03-17 17:12:54 -04:00
Leo Balter
86ff467767
Merge pull request #525 from anba/throw-type-error
...
Improve coverage %ThrowTypeError% and default class constructors
2016-03-17 16:31:37 -04:00
Leo Balter
5357b1585b
Merge pull request #504 from bocoup/explicit-async
...
Make asynchronous test configuration explicit
2016-03-17 15:28:08 -04:00
Mythri
6376e4d833
Removes special handling for UTC timezon in toISOString/15.9.5.43-0-13.js
2016-03-10 15:38:33 +00:00
Mike Pennisi
cb19235ba4
Add tests for Number.{MAX,MIN}_SAFE_INTEGER
2016-03-09 12:21:29 -05:00
Gorkem Yakin
6e912b0825
Merge pull request #518 from anba/typedarray_getownpropdesc_fixes
...
Fix test bugs
2016-03-02 13:22:29 -08:00
Leonardo Balter
7445d77d6d
Update descriptor tests for %TypedArray%.prototype properties
2016-03-02 13:15:03 -08:00
Leonardo Balter
02cdfacd31
Add tests for %TypedArray%.prototype get methods
...
Includes buffer, byteLength, byteOffset, length, and @@toStringTag
2016-03-02 13:15:01 -08:00
Leonardo Balter
6c56658974
Add tests for _TypedArray_.prototype methods
2016-03-01 15:36:34 -05:00
André Bargull
c46f5ff4b7
Increase coverage for %ThrowTypeError%
2016-03-01 19:13:43 +01:00
André Bargull
1517615a21
Fix test bugs
2016-02-23 18:55:06 +01:00
Rick Waldron
104a134bc2
restore "info"
2016-02-22 16:41:45 -05:00
Rick Waldron
2a962f74be
id => esid
2016-02-22 14:47:47 -05:00
Rick Waldron
2a112a3190
Exponentiation Operator tests
2016-02-22 14:47:47 -05:00
Leonardo Balter
bf782c8421
s/id/esid
...
Fixes #477
2016-02-22 09:47:42 -05:00
Gorkem Yakin
bd33b2b8e5
Merge pull request #509 from bocoup/typedarray-object-set
...
Add tests for _TypedArrays_(object) using object properties
2016-02-19 16:33:40 -08:00
Jordan Harband
d530c87b41
Create `proxyTrapsHelper` to throw on all traps by default.
2016-02-13 15:56:47 -08:00
Leonardo Balter
c82ab8cdbd
Add extra tests for _TypedArrays_(object) using object properties
2016-02-13 03:55:53 -02:00
Gorkem Yakin
dbcc8cadf3
Merge pull request #507 from bocoup/remove-unused-file
...
Remove unused harness file
2016-02-12 17:16:01 -08:00
Gorkem Yakin
eeb44cbe09
Merge pull request #500 from bocoup/prms-guard-thenable-opt
...
Promise: Add tests to disallow faulty optimization
2016-02-12 17:06:34 -08:00
Gorkem Yakin
5de18ae0b6
Merge pull request #501 from bocoup/prms-then-ctor-access-count
...
Promise: Add test for constructor access count
2016-02-12 16:54:20 -08:00
Gorkem Yakin
428418d5c7
Replace remaining es7id tags with id
2016-02-12 16:27:10 -08:00
Leonardo Balter
ebda746e6a
Replace es7id tags with id
2016-02-12 16:22:56 -08:00
Leonardo Balter
76080eac08
Reuse %TypedArray%.from and .of tests on each TypedArray constructor
2016-02-12 16:02:36 -08:00
Leonardo Balter
048073a29a
Add tests for _TypedArray_.from and of
2016-02-12 16:02:36 -08:00
Leonardo Balter
35dce20ec4
Update tests for %TypedArray%.from and of
2016-02-12 16:02:36 -08:00
Gorkem Yakin
02cbd01bfb
Merge pull request #486 from bocoup/object-setprototypeof
...
Add tests for [[SetPrototypeOf]] on immutable prototype exotic objects
2016-02-12 14:59:25 -08:00
Gorkem Yakin
ac7711e95f
Merge pull request #485 from bocoup/typedarray-constructor
...
Add tests for _TypedArray_ constructors
2016-02-12 14:47:48 -08:00
Mike Pennisi
071b5f03c6
Remove unused harness file
...
The harness file `Test262Error.js` has not contained executable code since it
was introduced in this project [1]. The definition of the `Test262Error`
function has consistently been located in the `sta.js` harness file which test
runners are expected to inject into the test environment.
Remove the file and all references to it.
[1] See commit c33bf0e043
2016-02-12 13:44:18 -05:00
Mike Pennisi
23d566209a
Make asynchronous test configuration explicit
...
For asynchronous tests, the contract between test file and test runner
is implicit: runners are expected to inspect the source code for
references to a global `$DONE` identifier.
Promote a more explicit contract between test file and test runner by
introducing a new frontmatter "tag", `async`. This brings asynchronous
test configuration in-line with other configuration mechanisms and also
provides a more natural means of test filtering.
The modifications to test files was made programatically using the
`grep` and `sed` utilities:
$ grep "\$DONE" test/ -r --files-with-match --null | \
xargs -0 sed -i 's/^\(flags:\s*\)\[/\1[async, /g'
$ grep "\$DONE" test/ -rl --null | \
xargs -0 grep -E '^flags:' --files-without-match --null | \
xargs -0 sed -i 's/^---\*\//flags: [async]\n---*\//'
2016-02-12 13:03:19 -05:00
Leonardo Balter
df2d760d60
Add tests for Object.prototype extensibility and its immutable prototype
...
Object.prototype is extensible and an immutable prototype exotic object,
it's [[Prototype]] value is null
Ref tc39/ecma262#308
2016-02-12 13:10:46 -02:00
Mike Pennisi
e3fae6eeb4
Promise: Add test for constructor access count
...
Assert that the `constructor` property of the "this" value of
`Promise.prototype.then` is accessed exactly once. This guards against
implementations where repeated access is used instead of reference
passing (possibly motivated by convenience).
Repeated access of this kind was demonstrated by V8's implementation of
the specification:
https://bugs.chromium.org/p/v8/issues/detail?id=4539
2016-02-10 13:56:55 -05:00
Mike Pennisi
219bdc6f73
Promise: Add tests to disallow faulty optimization
...
Add tests that assert behavior when a Promise is resolved with another
Promise whose `then` method has been overridden. Because all objects
with a `then` method are treated equivalently, the presence of a
[[PromiseState]] internal slot should have no effect on program
behavior.
These tests guard against a faulty optimization originally implemented
in V8:
https://bugs.chromium.org/p/v8/issues/detail?id=3641
2016-02-10 13:38:03 -05:00
Leonardo Balter
26785d40ca
Add tests for zero conversion on Array#indexOf and Array#lastIndexOf
...
Fixes #435
2016-02-05 19:17:26 -02:00
Leonardo Balter
75952beee2
Move test file from TypedArray to TypedArrays folder
2016-02-05 11:58:55 -02:00
Leonardo Balter
0a30413b49
fixup! rename test files + review fixes
2016-02-05 11:53:33 -02:00
Leonardo Balter
d033b160cb
fixup! Add tests for TypedArrays constructors
2016-02-05 11:53:32 -02:00
Leonardo Balter
7a8120fb63
fixup! Add tests for TypedArrays constructors
2016-02-05 11:53:32 -02:00
Leonardo Balter
f8a4229bfd
Add tests for TypedArrays constructors
2016-02-05 11:53:32 -02:00
Leonardo Balter
4bdd808d04
Update %TypedArray% function length
2016-02-05 11:53:32 -02:00
Leonardo Balter
7d715a4ef1
Revalidate basic call tests for ES2016 %TypedArray% constructor
2016-02-05 11:53:31 -02:00
Jordan Harband
cf83ad5e73
s/esid/id/g
2016-02-01 23:44:48 -08:00
Jordan Harband
940d8698d1
Add test with duplicate keys.
...
Per https://github.com/tc39/test262/pull/484#issuecomment-178145781
2016-02-01 16:57:31 -08:00
Jordan Harband
0a5e8372aa
Review feedback.
2016-02-01 10:44:25 -08:00
Jordan Harband
cf578d5190
Add Object.getOwnPropertyDescriptors tests.
2016-02-01 01:45:23 -08:00
Leonardo Balter
efced6eb32
Add test to assert Reflect.enumerate is now undefined
...
Ref #495
2016-02-18 16:40:00 -05:00
Leonardo Balter
65241f1e93
Add test to assert Proxy enumerate trap is not triggered anymore
...
Ref #495
2016-02-18 16:39:41 -05:00
Leonardo Balter
63c1f1ca88
Remove tests for Reflect.enumerate
...
Ref #495
2016-02-18 15:57:14 -05:00
Leonardo Balter
e223738369
Remove tests for Proxy enumerate
...
Ref #495
2016-02-18 15:57:14 -05:00
Leonardo Balter
a61fca93fa
Fix test for TypedArrays.from on callable function
...
TypedArrays constructors are still callable even if they trigger a
TypeError Exception when a new target is not defined
2016-02-18 13:39:49 -05:00
Leonardo Balter
e3c5f66a40
Fix case sentitive error on test/built-ins/Object folder
...
Fixes gh-482
2016-01-29 10:02:25 -05:00
Tom Schuster
97c61513d8
Stop test262 from hanging Spidermonkey with an unimportant error message
2016-01-23 17:41:59 +01:00
Leonardo Balter
1a64295a0b
Replace TypedArray constructor invalid length test for ES2016 specs
...
Replace a ES2015 test where calling the TypedArray constructor with
a floating number triggered a RangeError. Within the ES2016 specs,
the same call will trigger a TypeError, as the result for
`SameValue(NewTarget, here)` will be checked before.
2016-01-21 10:41:16 -05:00
Mike Pennisi
8f8b663ce7
Add tests for TypedArray intrinsic
2016-01-21 10:41:16 -05:00
Gorkem Yakin
738a24b109
Merge pull request from jugglinmike/improve-promise-coverage-resolve ( closes #463 )
2016-01-19 16:33:23 -08:00
Mike Pennisi
b1b4f04494
Add tests for Promise Resolve Functions
...
Remove files that tested both PerformPromiseThen and
PromiseResolveFunction in favor of new tests that test
PromiseResolveFunction more directly and completely.
2016-01-19 16:32:36 -08:00
Gorkem Yakin
4a862fba95
Merge pull request #465 from jugglinmike/improve-promise-coverage-all-race
...
Improve Promise coverage: PerformPromiseAll & PeformPromiseRace
2016-01-15 16:19:18 -08:00
André Bargull
33395b52f5
Add basic surface tests for NativeErrors
2016-01-15 18:13:36 +01:00
André Bargull
1bac79fbf3
Add basic surface tests for TypedArrays
2016-01-15 18:13:08 +01:00
André Bargull
42edfd6e89
Add missing tests for "length" and "name" properties of %TypedArray% built-in functions
2016-01-15 18:12:42 +01:00
André Bargull
ca61d9b876
Add missing tests for "length" and "name" properties of built-in functions
...
Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
2016-01-15 18:12:05 +01:00
André Bargull
5e3eed63b9
Move Symbol.species and AnnexB tests to new subfolders
2016-01-15 18:11:03 +01:00
Gorkem Yakin
cd60a6d83a
Merge pull request #464 from jugglinmike/improve-promise-coverage-cap
...
Improve Promise coverage: NewPromiseCapability
2016-01-13 16:49:47 -08:00
Gorkem Yakin
9d48bb0875
Merge pull request #462 from jugglinmike/improve-promise-coverage-reject
...
Improve Promise coverage: Promise Reject Function
2016-01-13 16:49:21 -08:00
Gorkem Yakin
8e76f6ca62
Merge pull request #461 from jugglinmike/improve-promise-coverage-then
...
Improve Promise coverage: Promise.prototype.then
2016-01-13 16:49:17 -08:00
Mike Pennisi
7fab70bb21
Add tests for Promise Reject Functions
2016-01-07 13:24:42 -05:00
Mike Pennisi
a5bf19486a
Extend coverage for PerformPromiseThen
2016-01-07 13:24:01 -05:00
Mike Pennisi
8e069e918f
Extend coverage for PromiseReactionJob
...
Add tests that assert sequential job execution
2016-01-07 13:24:01 -05:00
Mike Pennisi
eded6b269b
Extend tests to fully cover invocation concerns
...
Update test metadata to accurately describe the more complete set of
assertions.
2016-01-07 13:24:00 -05:00
Mike Pennisi
5f2ba2522f
Limit semantics under test
...
Because these tests concern the behavior of the PromiseReactionJob
abstract operation itself, they should avoid assumptions about the
correct implementation of that operation. Specifically: they should not
rely on the behavior of abupt completions returned from "reaction
handler" functions.
Re-implement tests to express control flow expectations using the
`$DONE` function only.
2016-01-07 13:23:54 -05:00
Mike Pennisi
5a8d1fdf77
Re-organize tests according to internal operations
...
By organizing files according to the structure of the specification,
test coverage can be more methodically evaluated.
2016-01-07 13:01:25 -05:00
Mike Pennisi
29cdc4543f
Rename tests for PromiseReactionJob
...
Use names that describe the behavior (not the location in the
specification) as per the current convention.
2016-01-07 12:55:36 -05:00
Mike Pennisi
f01767916a
Rename tests for PerformPromiseThen
...
These tests concern the behavior of PerformPromiseThen for settled
Promises. That abstract operation behaves differently for pending
promises, so the file naming scheme should reflect this distinction in
order to support the future implementation of additional tests.
2016-01-07 12:55:31 -05:00
Mike Pennisi
615f42274d
Extend coverage for NewPromiseCapability
2016-01-07 12:42:44 -05:00
Mike Pennisi
6e9d88a293
Extend coverage for PerformPromiseRace
2016-01-07 12:42:21 -05:00
Mike Pennisi
bb26beece2
Extend coverage for PerformPromiseAll
2016-01-07 12:42:21 -05:00
Jordan Harband
f1d072dec2
Ensure verifyConfigurable is last, because side effects suck
2015-12-22 09:25:33 -08:00
André Bargull
b62dccf1dc
Add test cases for recent ES2016 fixes
...
- lastIndex in RegExp.prototype[Symbol.split]: tc39/ecma262@08b4756747
- Missing number conversion in DataView.prototype.setXXX: tc39/ecma262@4f875fe96d
- Negative zero byteoffset in TypedArray: tc39/ecma262@2d1ed20db7
- EvalDeclarationInstantiation throws TypeError: tc39/ecma262@2be6968715
- BindingRestElement allows BindingPattern: tc39/ecma262@d322357e6b
- Eval in parameters with computed property keys: tc39/ecma262@04e2e9b719
- Use strict with non-simple parameters: tc39/ecma262@15b0db41ed
- __proto__ in strict mode: tc39/ecma262@5c1984334d
2015-12-15 17:33:49 +01:00
Jordan Harband
17e9f3aa00
Add Proxy tests to ensure observable semantics are maintained
2015-12-14 17:00:33 -08:00
Jordan Harband
a9503d5543
Adding keys during enumeration should not result in their appearance.
...
Per 9bd1954950
and https://github.com/tc39/test262/pull/453#discussion_r47556411
2015-12-14 14:13:01 -08:00
Jordan Harband
3dea218911
Minor review feedback
2015-12-14 12:20:14 -08:00
Jordan Harband
bf378352c7
Ensure fakeObject has "entries" and "values"
2015-12-14 12:15:21 -08:00
Gorkem Yakin
07eafc6651
Merge pull request #448 from anba/arraybuffer_coverage
...
Add tests for ArrayBuffer and ArrayBuffer.prototype.slice
2015-12-10 08:29:49 -08:00
Gorkem Yakin
ca0e411870
Merge pull request #447 from anba/promise_coverage
...
Improve test coverage for various Promise methods
2015-12-10 08:29:38 -08:00
Rick Waldron
59dfae6311
Merge pull request #450 from cscott/promise-improvements
...
Remove unnecessary ES2015 syntax; add feature flags where appropriate.
2015-12-04 14:50:52 -05:00
André Bargull
4341537ecd
Add 'class' features tag
2015-12-04 14:31:01 +01:00
C. Scott Ananian
bae004d531
Remove unnecessary ES2015 syntax; add feature flags where appropriate.
...
This allows these tests to be more easily reused to test Promise
implementations in isolation.
2015-12-03 17:34:17 -05:00
Gorkem Yakin
47d3eb1bfe
Merge pull request #446 from anba/es2016_december_update
...
Updates for ES2016 Draft 2015-12-01
2015-12-03 13:15:34 -08:00
André Bargull
bd8c91e250
Updates for ES2016 Draft 2015-12-01
...
- RegExp.prototype[Symbol.split] calls ToUint32 (https://github.com/tc39/ecma262/issues/92 )
- Species lookup removed from Promise.all and Promise.race (https://github.com/tc39/ecma262/issues/151 )
- Generator functions are no longer constructors (https://github.com/tc39/ecma262/pull/171 )
Fixes #444
2015-12-02 18:07:06 +01:00
André Bargull
5279bcb174
Improve test coverage for various Promise methods
2015-12-02 18:06:40 +01:00
André Bargull
6fcd24cd47
Add tests for ArrayBuffer and ArrayBuffer.prototype.slice
2015-12-02 18:05:12 +01:00
André Bargull
38c6700cbb
Test built-in function requirements of Promise and Proxy helper functions
2015-11-24 20:12:55 +01:00
Jordan Harband
7a5385e2ab
Add `es7id: pending` per https://github.com/tc39/test262/pull/95#issuecomment-157790248
2015-11-23 11:04:45 -06:00
Jordan Harband
e459048f22
Add Object.values tests
2015-11-22 00:56:43 -06:00
Jordan Harband
b517ca7119
Add Object.entries tests
2015-11-22 00:52:49 -06:00
André Bargull
77297535af
Interpret date-only forms as UTC
...
- Don't interpret date-only as local time
2015-11-11 17:46:32 +01:00
André Bargull
1da4c78051
Revert primitive wrapper prototypes and String#split to ES5
...
- Revert Number, Boolean and String prototypes to ES5 semantics
- Revert String.prototype.split's to ES5 behavior
2015-11-06 18:50:44 +01:00
Mike Pennisi
e39f8d88c5
Add tests for well-known Symbol: @@unscopables
2015-10-05 11:57:31 -04:00
Gorkem Yakin
26e6fd7c17
Convert binary integers to octal in octal integer tests
2015-09-30 08:54:45 -07:00
Gorkem Yakin
117c3f386e
Merge pull request #418 from bocoup/symbol-to-primitive
...
Add tests for well-known Symbol: @@toPrimitive
2015-09-18 09:07:51 -07:00
Gorkem Yakin
df1d78d10f
Merge pull request #399 from bocoup/symbol-match
...
Add tests for @@match
2015-09-14 14:29:28 -07:00
Mike Pennisi
62d5787b09
Add tests for @@match
...
Introduce tests for the well-known Symbol, `@@match`. This effects the
behavior of `String.prototype.match` and is also used by the IsRegExp
abstract operation.
2015-09-14 17:16:37 -04:00
Mike Pennisi
a63d75c1b6
Add tests for well-known Symbol: @@toPrimitive
...
Split up test files as per review feedback.
2015-09-12 14:47:38 -04:00
Gorkem Yakin
32efa4a289
Merge pull request #407 from bocoup/symbol-split
...
Add tests for well-known Symbol: @@split
2015-09-10 16:57:00 -07:00
Mike Pennisi
8879cde471
Add tests for well-known Symbol: @@search
2015-09-08 19:15:19 -04:00
Rick Waldron
acf2d0cb11
Merge pull request #408 from anba/es2015_changes
...
Tests for changes introduced in ES2015 (Annex E)
2015-09-07 15:32:36 -04:00
Rick Waldron
5ddb903e98
Merge pull request #393 from anba/non-browser
...
Improve compatibility for engines without support for Annex B and non-standard features
2015-09-07 15:32:03 -04:00
André Bargull
ffec41b7af
Improve compatibility for engines without support for Annex B
2015-09-07 20:40:09 +02:00
André Bargull
3a30a72269
Add tests for special case mappings
2015-09-07 18:22:07 +02:00
André Bargull
df9bf58204
Tests for changes introduced in ES2015 (Annex E)
...
- String case functions iterate over code points
- Has called before Get in Array.p.reverse
- Add test for web-compat Array.p.splice behaviour; Plus missing test for no arguments case
- ToObject no longer applied to this-value in Array.p.toLocaleString
- ToObject no longer applied to this-value in Object.p.toLocaleString
- Add tests for Object.p.propertyIsEnumerable and symbol property keys
- Add tests for Object.p.hasOwnProperty and symbol property keys
- Test property descriptor attributes of message property
- Tests for RegExp constructor checks
- Date constructor when called with date object
- TimeClip never returns negative zero
2015-09-07 17:25:55 +02:00
Gorkem Yakin
fb09f50296
Merge pull request #391 from bocoup/Reflect
...
Add tests for Reflect
2015-09-04 12:22:35 -07:00
Rick Waldron
9ccc663936
Merge pull request #415 from anba/remove-runTestCase-finally
...
Replace runTestCase when used with try-finally
2015-09-04 15:20:26 -04:00
Leonardo Balter
40675b1eb5
Add tests for Reflect.setPrototypeOf
2015-09-04 14:50:15 -04:00
Leonardo Balter
d3743c3ba7
Add tests for Reflect.set
2015-09-04 14:50:15 -04:00
Leonardo Balter
e7f5f3cf58
Add tests for Reflect.preventExtensions
2015-09-04 14:50:14 -04:00
Leonardo Balter
bc51cfa0e0
Add tests for Reflect.ownKeys
2015-09-04 14:50:14 -04:00
Leonardo Balter
a66ae7cbce
Add tests for Reflect.isExtensible
2015-09-04 14:50:14 -04:00
Leonardo Balter
257bd7b48e
Add tests for Reflect.has
2015-09-04 14:50:14 -04:00
Leonardo Balter
b2fd133f88
Add tests for Reflect.getPrototypeOf
2015-09-04 14:50:13 -04:00
Leonardo Balter
ec82bff120
Add tests for Reflect.getOwnPropertyDescriptor
2015-09-04 14:50:13 -04:00
Leonardo Balter
efac2336c2
Add tests for Reflect.get
2015-09-04 14:50:12 -04:00
Leonardo Balter
6326408215
Add tests for Reflect.enumerate
2015-09-04 14:50:12 -04:00
Leonardo Balter
ed233ccb2d
Add tests for Reflect.deleteProperty
2015-09-04 14:50:11 -04:00
Leonardo Balter
2fcf931f81
Add tests for Reflect.defineProperty
2015-09-04 14:50:11 -04:00
Rick Waldron
f74b1cb02c
Remove leftover "includes: [runTestCase.js]"
2015-09-04 13:46:54 -04:00
Leonardo Balter
980e50441f
Add tests for Reflect.construct
2015-09-04 13:33:09 -04:00
Leonardo Balter
bdcf4fd877
Add tests for Reflect.apply
2015-09-04 13:33:08 -04:00
Leonardo Balter
ff961826da
Add tests for the Reflect object
2015-09-04 13:33:08 -04:00
Rick Waldron
a2554d909b
Merge branch 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 into anba-remove-runTestCase-builtins-other
...
# By André Bargull
# Via André Bargull
* 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 :
Replace runTestCase with assert helpers, rest [test/built-ins]
Replace runTestCase with assert helpers [test/built-ins]
Conflicts:
test/built-ins/Array/from/S22.1.2.1_T1.js
test/built-ins/Array/from/S22.1.2.1_T2.js
test/built-ins/Array/from/S22.1.2.1_T3.js
2015-09-04 13:25:41 -04:00
Rick Waldron
e80b669a37
Merge pull request #404 from bocoup/update-array-from
...
Update tests for Array.from
2015-09-02 17:37:30 -04:00
Leonardo Balter
3bdc467c51
Update tests for Array.from
...
- fixed a false positive where argument-passed-null.js was returning a TypeError from 22.1.2.1 step 5
- created 2 tests from argument-passed-null to assert this as null and items as null
- fixed reference info on Array.from_arity.js
- fix tests at Array.from_forwards-length-for-array-likes
- static checks on calling-from-valid-1-onlyStrict.js
- static checks on calling-from-valid-1-noStrict.js
- static checks on calling-from-valid-2.js
- removed create-typedarray-from.js, that test belong to es6id 22.2.2.1
- removed mapfn-invalid-typeerror-1.js - false positive from 22.1.2.1 step 5
- moved mapfn-invalid-typeerror-2.js to more spread tests where mapfn is not callable
- ...
2015-09-02 17:36:11 -04:00
Rick Waldron
a2a92d0765
Merge pull request #402 from bocoup/symbol-replace
...
Add tests for well-known Symbol: @@replace
2015-09-02 17:20:17 -04:00
Rick Waldron
574c87b167
Merge pull request #390 from bocoup/Array.prototype.copyWithin
...
Add tests for Array.prototype.copyWithin
2015-09-02 17:16:07 -04:00
Rick Waldron
50423896d5
Merge pull request #414 from bocoup/symbol-to-string-tag
...
Add tests for well-known Symbol: @@toStringTag
2015-09-02 17:15:55 -04:00
Gorkem Yakin
c04984872d
Merge pull request #370 from bocoup/symbol-has-instance
...
Add tests for well-known Symbol, @@hasInstance
2015-08-31 16:32:55 -07:00
Dan Ehrenberg
a58a3a0ad9
Fix Array.from_arity test
...
An extra newline in a comment prevented the import from being parsed properly.
2015-08-25 14:37:37 -07:00
Mike Pennisi
4e88365dc6
Add tests for well-known Symbol: @@toPrimitive
2015-08-16 18:37:22 -04:00
André Bargull
4ec97779fd
Replace runTestCase with assert helpers, rest [test/built-ins]
2015-08-13 17:57:23 +02:00
André Bargull
1b14708467
Replace runTestCase with assert helpers [test/built-ins]
2015-08-13 17:50:58 +02:00
André Bargull
bd603294cb
Replace runTestCase with assert, try-finally
2015-08-13 17:43:11 +02:00
André Bargull
52a706c022
Replace runTestCase with assert, try-finally, [test/built-ins/Array]
2015-08-13 17:42:40 +02:00
André Bargull
6b48d9f1b2
Replace runTestCase with assert, try-finally, [test/built-ins/Object]
2015-08-13 17:42:06 +02:00
Brian Terlson
39b5b7272c
Merge pull request #392 from anba/remove-runTestCase-throws
...
Replace runTestCase with assert.throws
2015-08-11 10:42:07 -07:00
André Bargull
4f35b40617
Replace runTestCase with assert helpers [test/built-ins/Object]
2015-08-11 17:53:40 +02:00
André Bargull
44bc67797e
Replace runTestCase with assert helpers [test/built-ins/Object/defineProperties]
2015-08-11 17:53:17 +02:00
André Bargull
0a37298b46
Replace runTestCase with assert helpers [test/built-ins/Object/defineProperty]
2015-08-11 17:52:55 +02:00
André Bargull
c2a61d1735
Replace runTestCase with assert helpers [test/built-ins/Object/{getOwnPropertyNames, keys}]
2015-08-11 17:52:32 +02:00
André Bargull
ed0a2bad55
Replace runTestCase with assert helpers [test/built-ins/Object/getOwnPropertyDescriptor]
2015-08-11 17:52:09 +02:00
André Bargull
8d358cbd07
Replace runTestCase with assert helpers [test/built-ins/Object/is{Frozen, Extensible, Sealed}]
2015-08-11 17:51:42 +02:00
André Bargull
9cc4016866
Replace runTestCase with assert helpers [test/built-ins/Object/{freeze, preventExtensions, seal}]
2015-08-11 17:51:16 +02:00
André Bargull
4facaaab5f
Replace runTestCase with assert helpers [test/built-ins/Object/create]
2015-08-11 17:50:53 +02:00
André Bargull
589b638ab5
Replace runTestCase with assert.throws [test/built-ins]
2015-08-11 17:44:37 +02:00
André Bargull
edc902aff5
Replace runTestCase with assert.throws [test/built-ins/Array]
2015-08-11 17:44:26 +02:00
André Bargull
f3e919209c
Replace runTestCase with assert.throws [test/built-ins/Object]
2015-08-11 17:43:48 +02:00
Mike Pennisi
d6bbbc9aed
Add tests for well-known Symbol: @@toStringTag
2015-08-07 20:02:44 -04:00
Brian Terlson
d58c8b9a99
Merge pull request #410 from anba/remove-runTestCase-builtins
...
Replace runTestCase in test/built-ins
2015-08-06 10:23:59 -07:00