Commit Graph

2061 Commits

Author SHA1 Message Date
Leo Balter d2ee888bf0 Improve readability for ci scripts (#966) 2017-04-11 14:00:07 -04:00
Leo Balter 4dbd704904 Update Travis to check for changes after regenerating tests (#965) 2017-04-11 13:09:18 -04:00
Joseph Pecoraro 5424c81184 Fix Function.prototype.bind test (#958)
The `length` property should be [[Configurable]]
https://tc39.github.io/ecma262/#sec-function.prototype.bind

Also the test was testing deleting the wrong property.

Fixes #957.
2017-04-11 03:14:32 -04:00
Leo Balter 9ed24917d4 Merge pull request #961 from caitp/AsyncFromSyncIterUpdates
Update Async-from-Sync Iterator yield* tests
2017-04-11 03:12:24 -04:00
Leo Balter 7972f9bbdc
Add and update common tests for Array and Array.prototype
Ref #960
2017-04-11 03:01:00 -04:00
Leo Balter c58738e041
Add test for Array.name 2017-04-11 02:34:04 -04:00
Leo Balter 0546fb2f52
Update tests for Array.length 2017-04-11 02:34:03 -04:00
Leo Balter e98ccd13ef
Move tests for Array `length` to a proper folder 2017-04-11 02:33:44 -04:00
Caitlin Potter 53ab9ffd4e Generate tests 2017-04-10 18:29:53 -04:00
Caitlin Potter 9979d72764 Update Async-from-Sync Iterator yield* tests
Ordering of done and value property loads changed in
395b2e3b2f
2017-04-10 18:24:22 -04:00
jugglinmike bcb7651529 Automate deployment (#546)
Introduce configuration to allow build servers provided by the Travis CI
service to execute the test generation tool and commit the resultant
files to the canonical upstream repository.

Enabling this workflow required additional administrative work:

1. Create an account with TravisCI
2. Install the `travis` command-line utility
3. Create a "deploy key" and an encrypted version using the command
   `./make.py github_deploy_key_enc`
4. Register the deploy key with the project's GitHub account
5. Check the encrypted deploy key to the repository
6. Configure the TravisCI service to automatically build this project
2017-04-10 15:31:19 -04:00
André Bargull da764cafa2 Add Function.prototype.toString tests for async generator functions (#955)
* Add Function.prototype.toString tests for many function forms
* Add non-const computed property name to Function.prototype.toString tests
* Split class method tests into class-expression and class-statement tests
* Add tests for unnamed function expression forms
* Add tests for async (generator) methods in class contexts
* Add test case for Function.prototype.toString on async arrow function
2017-04-10 14:37:07 -04:00
André Bargull faaa4685e4 Remove invalid async-flag from syntax error tests (#959) 2017-04-10 14:34:57 -04:00
Rick Waldron 3c79e9dbac Merge pull request #953 from leobalter/syg-async-lineterm
Update cases for async arrow fns with a line terminator
2017-04-07 16:25:51 -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 230f9fc568
Merge branch 'littledan-test262-fixes'
Closes #954
2017-04-06 19:45:46 -04:00
Daniel Ehrenberg 20536eabe1
Generate tests 2017-04-06 19:44:14 -04:00
Daniel Ehrenberg dcfcd17ae7
Fix async generator test templates
- Insert a missing .next() call
- Avoid overlapping names used in test cases

Case files like `src/dstr-binding/ary-ptrn-elem-ary-elision-init.case` are already setting
bindings named `g`. Renaming them in the templates prevents overlapping names.
2017-04-06 19:40:25 -04:00
Daniel Ehrenberg 73c2d51734
Fix toFixed test to invoke toString() properly 2017-04-06 19:40:22 -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 7e87c73912 Merge pull request #952 from leobalter/anba-bug-fixes-new
[rebased] Update tests to match latests drafts
2017-04-06 15:40:30 -04:00
Leo Balter 883db87a51
Generate tests 2017-04-06 15:33:33 -04:00
André Bargull 3291704eb2
Fix multiple test errors
Tests doesn't use async functionality and don't call $DONE, so remove
"async" flag:
- src/params/error/async-gen-named-func-expr.template
- test/language/expressions/async-generator/params-named-dflt-abrupt.js
- test/language/expressions/async-generator/params-named-dflt-ref-later.js
- test/language/expressions/async-generator/params-named-dflt-ref-self.js

Intl.PluralRules.prototype is no longer a Intl.Prototype instance:
- test/intl402/PluralRules/prototype/prototype.js

Intl.PluralRules throws an error when called as a function:
- test/intl402/PluralRules/undefined-newtarget-throws.js

Module namespace objects call OrdinaryDelete for symbol properties:
- test/language/module-code/namespace/internals/delete-non-exported.js

Async generators no longer retrieves "done" property twice:
- src/async-generators/yield-star-async-next.case
- src/async-generators/yield-star-async-return.case
- src/async-generators/yield-star-async-throw.case

Minor units of CLF is 4, so we need to test with maximumFractionDigits=3
to get an error:
- test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js

DateTimeFormat.prototype.formatToParts length property was changed from
0 to 1:
- test/intl402/DateTimeFormat/prototype/formatToParts/length.js

minimumSignificantDigits and maximumSignificantDigits properties are
only retrieved once:
- test/intl402/NumberFormat/11.1.1_32.js
2017-04-06 15:30:13 -04:00
Leo Balter ef7b99970b
Merge branch 'littledan-tag-tests'
Closes #948
2017-04-06 14:10:48 -04:00
Leo Balter f48a41caed
Generate tests 2017-04-06 12:36:50 -04:00
Leo Balter d8d6db785f Merge pull request #949 from rwaldron/755
Fixes for gh-755, per reviews
2017-04-06 12:31:40 -04:00
Rick Waldron 72e7cd699f Move proxy function proxy tests into own file
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-06 12:26:04 -04:00
Daniel Ehrenberg 6330eccfc4
Add feature flags for various tests 2017-04-06 12:18:03 -04:00
Daniel Ehrenberg 2878106ca0 Fix offset for detached TypedArray test (#946)
Bug was reported by @anba at
https://github.com/tc39/ecma262/pull/852#issuecomment-291781031

Without this change, you'd expect a RangeError rather than a TypeError.
2017-04-06 12:05:43 -04:00
Choongwoo Han ab9738c471 Tests for using internal byteOffset in TypedArray.prototype.set (#944) 2017-04-06 12:04:09 -04:00
Leo Balter ce95292899 Merge pull request #939 from dilijev/typo
Corrected typo in annexB templates exsting->existing
2017-04-06 11:57:57 -04:00
Rick Waldron 2ac9ab1d31 Merge pull request #931 from littledan/tofixed-exactness
Test for the difference between toFixed and toString
2017-04-06 11:54:56 -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
Rick Waldron 7685eeac1f Merge pull request #941 from leobalter/yield-star-next-abrupt
Add cases for abrupt completions in yield* in async generator - next
2017-04-06 11:42:54 -04:00
Rick Waldron 01ce88b588 Merge pull request #922 from leobalter/async-gen-templates-dstr-errors
Add async generator error templates for destructuring binding
2017-04-06 11:42:04 -04:00
Rick Waldron b0e921ff45 Merge pull request #921 from leobalter/async-gen-templates-dstr
Add async generator templates for destructing binding
2017-04-06 11:41:27 -04:00
Doug Ilijev 5da6f981e9 Add escape-above-astral.js to cover escaping code units as encoded from extended unicode escape. (#942) 2017-03-28 20:09:16 -04:00
Leo Balter 70870dc239
Generate tests 2017-03-27 21:44:04 -04:00
Leo Balter 2c6a82e55f
Add cases for abrupt completions in yield* in async generator - next
Closes #883
2017-03-27 21:42:06 -04:00
Doug Ilijev 7bc56aaf2f Regenerated tests. 2017-03-27 17:49:48 -07:00
Leo Balter 8f0fd88ad9
Generate tests 2017-03-27 20:41:11 -04:00
Doug Ilijev be788f6abf Renamed src/annex-b-fns/*-{ exsting -> existing }-*.case 2017-03-27 17:41:00 -07:00
Leo Balter 78388c5ac2
Add cases for abrupt completions in yield* in async generator - getting iterator
Closes #873
2017-03-27 20:38:14 -04:00
Leo Balter 088ef77000
Generate tests 2017-03-27 17:19:19 -04:00
Leo Balter a010c9cf91
Add cases for yield stars flow 2017-03-27 17:15:27 -04:00
Leo Balter 882b3cc0d0 Fix frontmatter tags (#936) 2017-03-27 16:22:59 -04:00
Leo Balter 89160ff5b7 Merge pull request #926 from littledan/typedarray-constructor-edge-case
* Tests for throwing a TypeError in the TypedArray constructor on a detached buffer

Detached buffer causes an exception
- If it's already detached going into the constructor
- If the byteOffset coercion causes it to be detached

Tests are valid in ES2017

* Test that TypedArray constructor throws when detaching buffer in length calculation

This test is only valid with the PR in https://github.com/tc39/ecma262/pull/852

* Rename files per review
2017-03-27 13:55:54 -04:00