Mike Pennisi
81d00def42
Force "early error" tests to fail if evaluated
...
This pattern makes expectations more explicit by making test files more
literal.
2017-06-28 11:24:36 -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
André Bargull
c8e808bc69
Generate new tests for redeclarations in block- and switch-statements
2017-05-04 09:29:39 -07: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
3d8fe2af4c
Add tests for contextual keywords with escape sequences
2017-05-02 12:09:29 -07:00
Leo Balter
d74f58cddd
Generate tests
2017-04-21 15:26:46 -04:00
Leo Balter
20d496729d
Rename src/params to src/function-forms
...
The templates are being used for many tests reusing the same available function forms.
The format they are provided allow us to extend tests with cases for other tests relying
in the same formats.
2017-04-21 15:03:46 -04:00
Mike Pennisi
2c0c3e7f96
Correct typo in copyright information
2017-04-18 12:23:22 -04:00
André Bargull
d59e30c95e
Remove execute bit from files ( #976 )
2017-04-13 16:24:07 -04:00
Caitlin Potter
53ab9ffd4e
Generate tests
2017-04-10 18:29:53 -04:00
Leo Balter
6030e4ed71
Update object literal expressions for readability
...
After @rwaldron's feedback:
The purpose of the `!` operator is to evaluate an UnaryExpression,
coerce the result to a boolean value and then return the negated
value of that operation. But that's not what you're trying to do at
all—you just want to evaluate the expression to the right of the
operator, nothing more, nothing less. In this specific case, you
don't even really care about the evaluation, the goal is write
valid (or invalid, as the case may be) syntax that is will be
parsed according to a specific grammar rule that requires some
operator to signal that the thing is an expression and not a Block
Statement.
2017-04-07 11:34:59 -04:00
Leo Balter
590d04edd2
Add info
2017-04-06 17:50:59 -04:00
Leo Balter
4941d46a28
Update cases for async fns with a line terminator
2017-04-06 16:06:42 -04:00
Shu-yu Guo
5038754462
Test for [no LineTerminator here] after 'async' for arrows and methods
2017-04-06 16:06:42 -04:00
Leo Balter
883db87a51
Generate tests
2017-04-06 15:33:33 -04:00
Rick Waldron
818bb8d88f
Merge pull request #938 from leobalter/yield-star-abrupt-getiter
...
Add cases for abrupt completions in yield* in async generator - getIterator
2017-04-06 11:43:29 -04:00
Rick Waldron
d7f4f5f664
Merge pull request #937 from leobalter/yield-star
...
templates for yield star flow
2017-04-06 11:43:21 -04:00
Leo Balter
70870dc239
Generate tests
2017-03-27 21:44:04 -04:00
Leo Balter
8f0fd88ad9
Generate tests
2017-03-27 20:41:11 -04:00
Leo Balter
088ef77000
Generate tests
2017-03-27 17:19:19 -04:00
Leonardo Balter
1e74cfe336
Generate tests
2017-03-27 13:32:05 -04:00
Leo Balter
3d7ae07295
Generate tests
2017-03-27 13:07:11 -04:00
Leonardo Balter
8525cdb165
Generate tests
2017-03-27 13:07:09 -04:00
Leonardo Balter
66f42efc99
Generate tests
2017-03-27 13:07:08 -04:00
Leonardo Balter
74b07de387
Generate tests
2017-03-27 13:07:06 -04:00
Leo Balter
e4bbdba105
Merge pull request #914 from leobalter/850-top-level
...
Avoid top level name and length bindings
2017-03-14 20:48:48 -04:00
Leonardo Balter
aa2c69960d
Generate tests
2017-03-14 15:13:10 -04:00
Leonardo Balter
7522a29f31
Generate tests
2017-03-14 14:58:33 -04:00
Leonardo Balter
c37a242057
Move tests for params trailing comma to the test gen tool
2017-03-14 14:58:32 -04:00
Leonardo Balter
c017b4280b
Generate tests
2017-03-14 13:30:35 -04:00
Rick Waldron
b0e9db8856
Remove invalid tests on parameters vs arguments list
...
Ref #822
2017-03-14 13:20:10 -04:00
Leonardo Balter
340543bc11
Rename top level 'name' and 'length' bindings
...
Fix 850
2017-03-14 12:43:24 -04:00
Leonardo Balter
e54c471809
Generate tests
2017-03-09 10:30:09 -05:00
André Bargull
8a4abc2a00
Replace __proto__ with non-Annex B alternative
2017-02-22 18:04:59 +01:00
Mike Pennisi
7d4b1d28ae
Re-format tests for SyntaxErrors
...
Authored via the following command:
$ find test -type f -print0 | \
xargs -0 sed \
-i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1 phase: early\n\1 type: SyntaxError/g'
2016-10-19 15:24:21 -04:00
Mike Pennisi
cdc62ce0fa
Re-generate tests
2016-10-19 15:24:20 -04:00
Brian Terlson
dbf251586e
Add tests for async functions
...
Closes #479
2016-07-28 15:11:28 -07:00
Jeff Morrison
b785fdf942
Tests for trailing commas in function arg lists ( #733 )
...
Adds tests for the proposal as described here:
http://jeffmo.github.io/es-trailing-function-commas/
2016-07-28 12:32:03 -07:00
Mike Pennisi
655a880852
Add tests for arguments obj with dflt parameters
2016-06-21 12:22:49 -04:00
Mike Pennisi
7e3019e382
Add tests for function length with dflt parameters
2016-06-21 12:22:49 -04:00
Mike Pennisi
e5f1740411
Generate tests
2016-06-21 12:22:48 -04:00
Ian Halliday
022888be9e
Remove duplicate front matter keys ( #621 )
...
Fixes #620
2016-05-06 13:41:33 -04:00
Leonardo Balter
bf782c8421
s/id/esid
...
Fixes #477
2016-02-22 09:47:42 -05:00
Leonardo Balter
ebda746e6a
Replace es7id tags with id
2016-02-12 16:22:56 -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
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
Mike Pennisi
2fe074134a
Add tests for function `name` attribute
...
This change set includes tests for most invocations of the
SetFunctionName abstract operation in the ES2015 specification.
Practical testing considerations preclude the introduction of tests for
certain invocations:
- The project is still vetting methods to sustainably test the semantics
of the Destructuring Binding pattern across all valid productions.
- 13.3.3.6 Runtime Semantics: IteratorBindingInitialization
- 13.3.3.7 Runtime Semantics: KeyedBindingInitialization
- Without a loader, there is no way to access a function object declared
in an ExportDeclaration, so `name` assignment cannot be tested in
these cases
- 14.1.19 Runtime Semantics: InstantiateFunctionObject
- 14.4.12 Runtime Semantics: InstantiateFunctionObject
- 14.5.15 Runtime Semantics: BindingClassDeclarationEvaluation
- 15.2.3.11 Runtime Semantics: Evaluation
2015-07-21 20:05:34 -04:00
Mike Pennisi
b2a62444fc
fixup! Add tests for MethodDefinition forms new to ES6
...
Update test according to latest change to ES6 spec:
https://twitter.com/awbjs/status/603251578070552576
2015-05-26 14:52:21 -04:00
Mike Pennisi
30a4a5da7d
fixup! Add tests for MethodDefinition forms new to ES6
...
Avoid extending builtin prototype and consistently define a shadowing
property on the object instance to help recognize a possible
implementation bug.
2015-05-26 12:33:51 -04:00