Commit Graph

2037 Commits

Author SHA1 Message Date
Leo Balter 0d08288e4c
Normalize trailing comma cases both for args and parameters 2017-04-21 15:23:57 -04:00
Leo Balter a6c5bcf81d
Update function forms templates to reflect the params name when appropriate only 2017-04-21 15:03:49 -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
Rick Waldron f5d8b1c1fb ArrayBuffer: constructor, name, length, descriptor (#991)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-20 15:14:08 -04:00
Rick Waldron da554fe5dc Merge pull request #990 from edgemaster/missing-dollar
INTERPRETING.md missed two `$` => `$262` changes.
2017-04-20 14:22:22 -04:00
Thomas Wood 2f64a621cd INTERPRETING.md missed two `$` => `$262` changes.
References #875, #802
2017-04-20 18:54:02 +01:00
André Bargull 94f6003d11 Optimize decodeURI/encodeURI tests (#987)
* Move decimalToHexString into harness instead of duplicating it in multiple files

* Optimize decimalToHexString and support numbers greater than 65535

* Replace alternative decimalToHexString function with include for decimalToHexString.js

* Add decimalToHex2String to return the string representation of a two-digit hex-number

* Replace decimalToHex2String with decimalToPercentHexString to return the percent hex-encoded string of a two-digit hex-number

* Replace two String.fromCharCode calls with a single call

* Further reduce string concatentations in decodeURI[Component] tests

* Remove unnecessary Test262Error error handling in catch-clauses

* Remove try/catch wrappings in decodeURI/encodeURI tests
2017-04-18 16:31:31 -04:00
Mathias Bynens d354788f6f RegExp property escapes: list emoji data version (UTR51) (#981) 2017-04-18 12:30:35 -04:00
Mike Pennisi a61efb5192 Add omitted license information
As the author of these files, I can verify that they were contributed in
2015 on behalf of the V8 project.
2017-04-18 12:23:22 -04:00
Mike Pennisi 2c0c3e7f96 Correct typo in copyright information 2017-04-18 12:23:22 -04:00
jugglinmike 3335034510 Reference `requirements.txt` file in CI (#983)
Installing dependencies using this file increases parity between the CI
and development environment. Because the file explicitly specifies a
version of the package to be installed, this approach also produces more
predictable results overall.
2017-04-18 12:21:24 -04:00
Daniel Ehrenberg f759df6322 Copyright attribution for test 2017-04-17 12:49:47 +02:00
Mathias Bynens 1c1935e363 Remove tests for Unicode properties that are no longer supported (#980)
Ref. https://github.com/tc39/proposal-regexp-unicode-property-escapes/issues/27.
2017-04-15 12:57:32 -04:00
Leo Balter e43ce56105 Add Verify Property harness (#979) 2017-04-15 12:56:29 -04:00
André Bargull 1ba3a7c4a9 Remove unused functionality from harness (#975) 2017-04-14 12:22:27 -04:00
Mathias Bynens 92a85ed8fd Fix `Script_Extensions=Inherited` data (#977)
Ref. https://github.com/mathiasbynens/node-unicode-data/issues/45.
Ref. da8ae69b9b.
Ref. https://github.com/mathiasbynens/unicode-property-escapes-tests/issues/7.
2017-04-14 12:20:05 -04:00
Mathias Bynens 5f81c02e3f CONTRIBUTING: Link to the latest spec draft (#978) 2017-04-14 12:19:39 -04:00
André Bargull d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
Mathias Bynens d993c4a9e8 Fix three broken RegExp property escape tests (#974)
c62ed61cfc
2017-04-13 14:40:18 -04:00
Mathias Bynens 44b40e083e Add exhaustive tests for RegExp Unicode property escapes (#971)
Proposal: https://github.com/tc39/proposal-regexp-unicode-property-escapes

These tests have been generated by the script at https://github.com/mathiasbynens/unicode-property-escapes-tests. They check all the properties and values that should be supported by implementations against the symbols they’re supposed to match. False positives are detected as well.

Ref. #950.
Ref. https://github.com/tc39/proposal-regexp-unicode-property-escapes/issues/4.
2017-04-13 11:22:49 -04:00
Daniel Ehrenberg 89e15ce814 Test to block legacy hoisting for `function arguments() {}` (#970)
Ref https://github.com/tc39/ecma262/issues/815
Ref https://github.com/tc39/ecma262/pull/889

This is testing the current semantics of the specs, rather than the semantics in the proposed referenced issue.
2017-04-13 11:06:16 -04:00
Mathias Bynens a621155bcd Unify indentation and add .editorconfig (#973) 2017-04-13 10:37:32 -04:00
Daniel Ehrenberg 799568fe26 Fix commit messages 2017-04-11 23:58:04 +02:00
Daniel Ehrenberg dbfca4581d Prohibit ASI between 'let' and 'yield'/'await'
Inspired by https://github.com/tc39/test262/pull/956
2017-04-11 22:34:43 +02:00
Jeff Walden 6fe9488ec7 Add tests for the behavior of |let <newline> await| in normal and async functions. 2017-04-11 22:21:48 +02:00
Leo Balter 96aa8c77b3
revert after_success 2017-04-11 14:12:07 -04:00
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