Commit Graph

1524 Commits

Author SHA1 Message Date
Leo Balter 5f04d2b1f3
Generate tests 2017-05-10 14:08:35 -04:00
Leo Balter f6175af556 Add tests for Promises rejection queue (#1029)
* Add tests for Promises rejection queue

These basic tests assert the rejection is captured but a later queued job
from a chain of then calls.

* fixup! Add tests for Promises rejection queue
2017-05-10 12:59:18 -04:00
André Bargull 947bf6d3e2 Add tests for Array.prototype methods when length property exceeds safe integer limit (#1028) 2017-05-10 12:20:06 -04:00
Leo Balter ed714d702a Merge pull request #1017 from anba/expr-lookahead-restr
Expression statement lookahead restriction and identifier tests
2017-05-09 18:38:11 -04:00
Leo Balter 9481020e91 Merge pull request #1023 from anba/redeclaration
Lexical redeclarations in block- and switch-statements

Background feedback from @anba:

In https://tc39.github.io/ecma262/#sec-switch-statement-static-semantics-lexicallydeclarednames, all lexically declared names from the different case clauses are combined.
For each case clause, the LexicallyDeclaredNames definition from https://tc39.github.io/ecma262/#sec-block-static-semantics-lexicallydeclarednames applies, which has:

```
StatementListItem : Declaration
  1. Return the BoundNames of Declaration.
```

And in https://tc39.github.io/ecma262/#prod-Declaration we've got:

```
Declaration[Yield, Await] : HoistableDeclaration[?Yield, ?Await, ~Default]
```

And in https://tc39.github.io/ecma262/#prod-HoistableDeclaration:

```
HoistableDeclaration[Yield, Await, Default] : FunctionDeclaration[?Yield, ?Await, ?Default]
```

And the BoundNames of a FunctionDeclaration is its BindingIdentifier https://tc39.github.io/ecma262/#sec-function-definitions-static-semantics-boundnames.

And there's also B3.3.5 (https://tc39.github.io/ecma262/#sec-switch-duplicates-allowed-static-semantics) which allows duplicate FunctionDeclarations in sloppy mode in switch-statements.
2017-05-05 13:04:26 -04:00
André Bargull 0271179c4a Use assert-lib: intl402/PluralRules 2017-05-04 21:25:02 +02:00
André Bargull bfac377fca Use assert-lib: intl402 2017-05-04 21:16:14 +02:00
André Bargull 3841b0a09e Use assert-lib: intl402/String 2017-05-04 21:15:31 +02:00
André Bargull 8bed4d442d Use assert-lib: intl402/NumberFormat 2017-05-04 21:14:46 +02:00
André Bargull 315031c07d Use assert-lib: intl402/Number 2017-05-04 21:14:05 +02:00
André Bargull c63cb39cbb Use assert-lib: intl402/Intl 2017-05-04 21:13:23 +02:00
André Bargull 1579764e37 Use assert-lib: intl402/DateTimeFormat 2017-05-04 21:12:42 +02:00
André Bargull 94e9ad831e Use assert-lib: intl402/Date 2017-05-04 21:12:00 +02:00
André Bargull 3aa427257b Use assert-lib: intl402/Collator 2017-05-04 21:10:58 +02:00
André Bargull 49221fce1f Remove no longer needed manual redeclaration tests 2017-05-04 09:34:34 -07:00
André Bargull c8e808bc69 Generate new tests for redeclarations in block- and switch-statements 2017-05-04 09:29:39 -07:00
Joseph Pecoraro 19eb1d2e02 Add tests for completion value of function / class declaration statements (#1012) 2017-05-04 11:22:28 -04:00
André Bargull e0c29310d9 Generate tests for yield and await as identifier 2017-05-02 12:09:33 -07:00
André Bargull 490b2dc461 Remove manual tests for 'yield' in generators 2017-05-02 12:09:32 -07:00
André Bargull d887db88ee Add tests escaped/unescaped yield/await labels 2017-05-02 12:09:30 -07:00
André Bargull 3d8fe2af4c Add tests for contextual keywords with escape sequences 2017-05-02 12:09:29 -07:00
André Bargull 7a86baee7d Add lookahead restriction tests for "let [" in expression statement contexts 2017-05-02 12:09:28 -07:00
André Bargull 75d153d280 Add tests to ensure async-functions/generators are not accepted in statement position 2017-05-02 12:09:27 -07:00
André Bargull 69735fd832 Move unary plus tests into correct directory 2017-05-02 12:09:26 -07:00
André Bargull 4494db10b7 Rename and update assignment early error tests 2017-05-02 12:09:25 -07:00
André Bargull 4d95f88c08 Rename and consolidate tests in keywords directory 2017-05-02 12:09:23 -07:00
André Bargull bd7c280e92 Rename and consolidate tests in reserved-words directory 2017-05-02 12:09:22 -07:00
André Bargull 053d63fd0d Rename and consolidate tests in future-reserved-words directory 2017-05-02 12:09:21 -07:00
Rick Waldron 376d9a57a7 Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-01 17:19:50 -04:00
Mathias Bynens d5e1150325 Add regular RegExp Unicode property escape tests (#1014)
Ref. https://github.com/mathiasbynens/unicode-property-escapes-tests/pull/8.
2017-05-01 13:25:51 -04:00
Leo Balter 666f0e920a
Add assert.throws.early 2017-05-01 12:29:52 -04:00
Leo Balter 0ad3d51fd9
Add an early error case for ({ async async }) 2017-05-01 12:29:23 -04:00
Leo Balter ca314476a9 Update RegExp tests for named-capturing and dotAll (#1009)
* Split order tests for RegExp#flags

* small fixes for RegExp named groups

* Remove invalid syntax

* The test mustn't include the global flag
2017-05-01 12:08:31 -04:00
jugglinmike 74954bfa91 Introduce automated validation for test format (#994)
This script is intended to identify common test file formatting errors
prior to their acceptance into the project. It is designed to support
future extensions for additional validation rules.
2017-05-01 12:04:05 -04:00
Leo Balter 7bb4cd8f41 Merge pull request #1010 from rwaldron/dstr-binding_for-await-of
for-await-of: dstr-binding templates
2017-04-28 17:32:46 -04:00
Rick Waldron 5b2ffd2def Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-28 17:23:17 -04:00
Rick Waldron 6fc8082e64 Merge pull request #963 from leobalter/prop-descs
Cleanup prop desc tests in the Array folder
2017-04-28 14:51:57 -04:00
Leo Balter a09f857ed8 Merge pull request #1006 from leobalter/fix-info
Update RegExp#dotAll tests
2017-04-27 19:37:54 -04:00
Leo Balter 0f10d73fef
Split tests and fix actual/expected order 2017-04-27 19:33:42 -04:00
Daniel Ehrenberg 6ee183a057
RegExp lookbehind tests
Tests for the stage 3 proposal at
https://tc39.github.io/proposal-regexp-lookbehind/

Tests ported from V8, written by @hashseed
2017-04-27 19:33:40 -04:00
Leo Balter 7493787a3f
Replace duplicate case 2017-04-27 18:39:37 -04:00
Leo Balter 028d984c0e
Update RegExp#dotAll tests 2017-04-27 18:35:37 -04:00
Leo Balter f2db2b6829
fix metadata for regexp.prototype.dotall 2017-04-27 18:24:48 -04:00
Daniel Ehrenberg bfc9020d51 Tests for RegExp dotAll proposal (#997)
Proposal from @mathiasbynens at https://github.com/tc39/proposal-regexp-dotall-flag and https://tc39.github.io/proposal-regexp-dotall-flag/
2017-04-27 18:20:24 -04:00
⭐caitp⭐ 91c53231d0 Add tests for observable [[GetOwnProperty]] ops in EnumerableOwnProperties (#1003) 2017-04-27 17:09:05 -04:00
Daniel Ehrenberg 6cf15f523a RegExp named group tests (#998)
Tests against the Stage 3 named capture groups proposal
https://tc39.github.io/proposal-regexp-named-groups
2017-04-27 12:50:59 -04:00
Rick Waldron c528486da3 Merge pull request #1000 from leobalter/remove-error
Avoid using $ERROR in test files
2017-04-26 15:02:45 -04:00
Leo Balter d93e15662f
Generate Tests 2017-04-25 15:56:28 -04:00
Leo Balter d6efc316ed
Update some tests to avoid $ERROR 2017-04-25 15:18:27 -04:00
Leo Balter fa9aae7750
Use assert api instead of $ERROR 2017-04-24 15:31:52 -04:00