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
Mike Pennisi
700f1469e1
Move tests for object literals
...
Test262 defines tests for expression-producing syntactic forms within
the `language/expressions/` directory. Most tests for object literals
conform to this structure, but 12 such tests were added to the
`language/object-literal/` directory. Move these tests to the canonical
location for object literals.
2016-02-04 09:58:31 -05: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
Mike Pennisi
4dc81d3788
Add tests for tail-call optimization
...
ECMAScript 2015 introduced tail call optimization for function calls
occuring in a number of positions in the grammar. Assert expected
behavior by triggering a large (but configurable) number of recursive
function calls in these positions. Compliant runtimes will execute such
programs without error; non-compliant runtimes are expected to fail
these tests by throwing an error or crashing when system resources are
exhausted.
2016-02-01 13:20:17 -05:00
Jordan Harband
cf578d5190
Add Object.getOwnPropertyDescriptors tests.
2016-02-01 01:45:23 -08:00
Gorkem Yakin
07aafd0c63
Merge pull request #505 from anba/intl_name
...
Add coverage for 'name' property of Intl built-in functions
2016-02-19 11:04:38 -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
André Bargull
31a9036e9b
Add coverage for 'name' property of Intl built-in functions
2016-02-12 18:58:57 +01: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
Gorkem Yakin
052bf2379b
Merge pull request #475 from bocoup/completion-reform
...
Tests for ES2015/2016 Completion Reform
2016-01-26 12:38:27 -08:00
Tom Schuster
97c61513d8
Stop test262 from hanging Spidermonkey with an unimportant error message
2016-01-23 17:41:59 +01:00
Mike Pennisi
e62d43c815
Update tests according to ES2016 draft semantics
...
The ES2016 draft further refines the completion values for `if` and
`with` statements. Two tests must be removed outright because the
completion value in those cases is no longer accessible from the
runtime.
2016-01-22 15:00:54 -05:00
Mike Pennisi
407b8964ce
Add tests for ES2015 completion reform
...
In order to facilitate proper tail calls, ES2015 modified the completion
value of a number of statements.
These tests use `eval` to verify the new values.
2016-01-22 15:00:03 -05: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
e56687f5e9
Merge pull request #473 from bocoup/for-inof-exprs
...
Add tests for iterator expression in ForIn/Of head
2016-01-19 18:42:11 -08: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
Mike Pennisi
19762b927a
Add tests for iterator expression in ForIn/Of head
...
Although the `for..in` statement allows Expressions to define the
iterator, only an AssignmentExpression may occupy this position in the
`for..of` statement.
2016-01-19 12:27:33 -05: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
bb1bda6dfd
Add missing tests for "length" and "name" properties of AnnexB built-in functions
2016-01-15 18:11:38 +01:00
André Bargull
5e3eed63b9
Move Symbol.species and AnnexB tests to new subfolders
2016-01-15 18:11:03 +01:00
Gorkem Yakin
4d418a9fe7
Merge pull request #468 from bocoup/subclassing
...
Subclassing built-in objects
2016-01-14 11:48:57 -08: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
Gorkem Yakin
c9764dc5b5
Merge pull request #460 from bocoup/destructuring-binding
...
Destructuring Binding - syntax and simple initialization
2016-01-13 16:03:24 -08:00
Gorkem Yakin
e7f4e4324a
Merge pull request #455 from anba/instanceof_op
...
Add tests for instanceof operator when prototype property is primitive or getter
2016-01-13 14:59:17 -08:00
Leonardo Balter
42d1a10d6d
fixup! Add tests for Array - calling super with a single argument
2016-01-13 13:28:00 -05:00
Leonardo Balter
c99ace29d7
Move subclass tests to test/language/statements/class/subclass/builtin-objects
2016-01-12 16:45:03 -05:00
Leonardo Balter
705940d205
Add tests for Subclassing the built-in Proxy Object
2016-01-12 16:40:19 -05:00
Leonardo Balter
d30e98df53
Add tests for Subclassing the built-in Promise Objects
2016-01-12 16:39:00 -05:00
Leonardo Balter
85ee704ad7
Add tests for Subclassing the built-in GeneratorFunction Objects
2016-01-12 15:17:59 -05:00
Leonardo Balter
4e079a8cab
Add tests for Subclassing the built-in DataView Objects
2016-01-12 14:02:00 -05:00
Leonardo Balter
0c40ed0cf0
Add tests for Subclassing the built-in ArrayBuffer Objects
2016-01-11 17:57:47 -05:00
Leonardo Balter
4ad09e5060
Add tests for Subclassing the built-in WeakSet Objects
2016-01-11 17:57:47 -05:00
Leonardo Balter
ff3724fd43
Add tests for Subclassing the built-in WeakMap Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
194b6b597f
Add tests for Subclassing the built-in Set Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
ba1482df8a
Add tests for Subclassing the built-in Map Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
6fdf6dd752
Add tests for Subclassing the built-in TypedArray Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
27764aa355
Add tests for Subclassing the built-in String Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
fc160c78ad
Add tests for Subclassing the built-in RegExp Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
5be3a8019d
Add tests for Subclassing the built-in Date Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
f5b5ad47e5
Add tests for Subclassing the built-in Number Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
67ec7fbf7b
Add tests for Subclassing the built-in NativeError Objects
2016-01-11 17:57:44 -05:00
Leonardo Balter
390c7a7fdb
Add tests for Subclassing the built-in Error Object
2016-01-11 17:57:44 -05:00
Leonardo Balter
a5b3c84fbd
Add tests for Subclassing the built-in Symbol Object
2016-01-11 17:57:43 -05:00
Leonardo Balter
47faa3ec58
Add tests for Subclassing the built-in Boolean Object
2016-01-11 17:57:43 -05:00
Leonardo Balter
1bcc056914
Add tests for Subclassing the built-in Function Object
2016-01-11 17:57:43 -05:00
Leonardo Balter
cde62d08d8
Add tests for Subclassing the built-in Object
2016-01-11 17:57:42 -05:00
Leonardo Balter
7a87731d9c
Add tests for Subclassing the built-in Array Object
2016-01-11 17:57:42 -05: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
Leonardo Balter
5e653f2e6c
ObjectBindingPatterns can't end with multiple commas
2015-12-29 16:50:23 -05:00
Leonardo Balter
7e24ed9999
Destructuring Binding - syntax and simple initialization
2015-12-29 16:31:12 -05:00
André Bargull
92423d3c9f
Add tests for instanceof operator when prototype property is primitive or getter
2015-12-22 19:05:53 +01:00
Jordan Harband
f1d072dec2
Ensure verifyConfigurable is last, because side effects suck
2015-12-22 09:25:33 -08:00
Jeff Walden
78ca60e6cf
Add tests verifying that ASI can't occur after the leading let/const in |let let|, |let let = "...";|, and |const let = "...";|. Each matches the LexicalDeclaration production, then triggers an early error before evaluation because it attempts to bind "let".
2015-12-18 15:03:04 -05: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