Commit Graph

2735 Commits

Author SHA1 Message Date
Caio Lima 349baebc01 Added missing cases into BigIntConstructor and String parameters 2017-11-17 00:11:27 -02:00
Leo Balter 5b7b007af5
Generate tests 2017-11-15 14:33:23 -05:00
Leo Balter 28a2495c3c
Add more tests for class fields
- Add tests for multiple public fields of the same name
- Reorganize fields default templates
- Add more tests for redeclaration of fields
- Remove non used template
- Add tests for computed property names in class fields definitions
- Minor test fixes

Thanks @andresaraujo for helping with the early review
2017-11-15 14:31:31 -05:00
Leo Balter 076ecc38c6
Fix bugs reported in #1338 (#1339)
* Accessing `ta[0]` throws a TypeError.

* Fix array indices starting at 0 and property references

* Fix classfields templates for properly checking static propnames.

* Generate tests

* `assert.equal` is not defined

* Add missing includes

* Generate tests

* typo s/Avalue/42/

* fix whitespace

* Add missing var for strict mode

* Expand generated class fields tests for forbidden computed property name values

Ref https://github.com/tc39/test262/pull/1339#issuecomment-342830243

* derived classes have access to private names in base classes, if private names are in scope
2017-11-10 15:06:00 -05:00
Leo Balter c4e3d12597
Merge pull request #1335 from bocoup/classfields-alg
classfields: Tests for modified algorithms and Private Names
2017-11-06 10:11:24 -05:00
Jeff Walden 5c8fa59c4c Add tests for setting/defining an element of a typed array to a value, where converting that value to the typed array element type detaches the buffer underlying the typed array. (#1336) 2017-11-03 15:54:17 -04:00
Valerie R Young bef77dc144 classfields: PrivateFieldSet and PrivateFieldGet 2017-11-03 15:43:44 -04:00
Valerie R Young a6e9a4ea1a classfields: PrivateFieldAdd TypeError test 2017-11-03 15:43:44 -04:00
Valerie R Young ad12c4f5ad classfields: field definition abrupt completion tests 2017-11-03 15:43:44 -04:00
Rick Waldron 4b4c44cb51 fixup: swap actual and expected in test/built-ins/Promise/prototype/finally/species-symbol.js (#1333) 2017-11-03 15:34:22 -04:00
Leo Balter 06091cb6fd
Merge pull request #1319 from bocoup/classfields-dupsdeletes
classfields: add tests duplicate private fields and deleting private fields
2017-11-03 15:19:34 -04:00
Leo Balter 8213224280
Merge pull request #1331 from bocoup/classfields-privatename
classfields: add tests for privatename production and ASI
2017-11-03 15:19:11 -04:00
Valerie R Young 1bbedf4b02
regenerate files 2017-11-03 14:52:47 -04:00
Valerie R Young dd371194fe
class fields: add ASI tests 2017-11-03 14:52:46 -04:00
Valerie R Young 214e9969d5
class fields: added tests for privatename production 2017-11-03 14:52:46 -04:00
Leo Balter ce203360b1
Merge pull request #1323 from bocoup/classfields-scope
classfields: add early error tests for privatename references
2017-11-03 14:12:10 -04:00
Leo Balter 20a2572ba9
Merge pull request #1309 from bocoup/classfields-stringname
classfields: add tests for forbidden public/private propertynames
2017-11-03 14:02:27 -04:00
Leo Balter 27e2c28d13
Merge pull request #1334 from anba/test-issues
Fix multiple test issues
2017-11-01 13:42:58 -04:00
André Bargull 1f57fe412c Regenerate tests 2017-11-01 08:23:44 -07:00
André Bargull 5ec3bd7d03 Fix more issues in eval tests for class-fields
Changes:

- Changed eval-err-contains-supercall-1.case to add a property access similar to eval-err-contains-supercall-2.case, without this property access eval-err-contains-supercall-1.case would be identical to eval-err-contains-supercall.case.
- Remove unnecessary "earlyerror" and "executionerror" template arguments when the value is already clear from the context.
- Fixed the description in eval-err-contains-supercall-2.case to refer to the correct early error rule.
- Fixed a copy-paste error in eval-err-contains-superproperty-1.case and eval-err-contains-superproperty-2.case.
- Split initializer-eval-super into initializer-eval-super-call and initializer-eval-super-property, because we actually need to test different behaviour for the super-call compared to the super-property case.
- Split initializer-eval into initializer-eval-arguments and initializer-eval-newtarget, because `arguments` and `new.target` are differently handled in class-fields.
- And fixed other copy-paste errors in the template files.

Fixes #1325
2017-11-01 08:23:43 -07:00
André Bargull 2d6a356699 Move incomplete_hex_unicode_escape.js to annexB
Fixes #1313
2017-11-01 08:23:43 -07:00
André Bargull b3fc8482fb Remove empty line after | to fix monkeyYaml parsing issue
Fixes #1312
2017-11-01 08:23:43 -07:00
André Bargull 26b3015f33 Fix expected value for BigInt.prototype.toString.length
Fixes #1306
2017-11-01 08:23:42 -07:00
André Bargull 32b1984275 Fix multiple issues in nan-equivalence.js test case 2017-11-01 08:23:42 -07:00
André Bargull 6c8698acac Update test to not rely on throwing a Test262Error
Only this test relied on $ERROR throwing a catchable Test262Error.

This change allows test environments to provide their on $ERROR function for better error reporting.
2017-11-01 07:54:04 -07:00
Rick Waldron 2659c88820
Merge pull request #1329 from gsathya/promise-finally-species-constructor
Promise.p.finally: test SpeciesConstructor and Symbol.species lookup
2017-11-01 10:46:25 -04:00
Rick Waldron 350d2c70bf
Merge pull request #1302 from rwaldron/bigint-fixups
Bigint fixups
2017-11-01 09:20:23 -04:00
Rick Waldron 1f1d2d275d
Merge pull request #1317 from cxielarko/getbiguint64
getBigUint64 tests
2017-11-01 09:01:36 -04:00
Rick Waldron bbdf494500
Merge pull request #1316 from cxielarko/setbigint64
setBigInt64 tests
2017-11-01 08:58:44 -04:00
Valerie R Young 4828ce08a3 regenerate files 2017-10-31 14:49:26 -04:00
Valerie R Young 889857ccb5 Fixes for forbidden property names 2017-10-31 14:49:25 -04:00
Valerie 9d7378cdba
Merge pull request #1325 from leobalter/fix-1303
fix typos in class field templates
2017-10-30 14:11:45 -04:00
Leo Balter 21b7e4a7bd
Add missing parameter and reorder actual, expected assertion parameters (#1326) 2017-10-30 11:22:13 -04:00
Valerie R Young 7572c0c36b Classfields: simple success case for nested classes private name reference 2017-10-29 20:46:09 -04:00
Valerie R Young 54f4d02aa6 Classfields: simple early errors test for privatename references in scripts 2017-10-29 20:46:09 -04:00
Valerie R Young 2664e17e1d generated test files 2017-10-29 20:11:12 -04:00
Sathya Gunasekaran a392f6ced8 Promise.p.finally: test SpeciesConstructor and Symbol.species lookup 2017-10-28 14:01:13 -07:00
Valerie R Young ea4c8fc95c classfields: add tests for forbidden privatenames 2017-10-27 17:40:42 -04:00
Valerie R Young 458e33afe3 classfields: add tests for forbidden propertynames 2017-10-27 17:40:42 -04:00
Leo Balter 88881301d7
Regenerate tests 2017-10-27 15:45:42 -04:00
Leo Balter 385d672fa0
fix typos in class field templates 2017-10-27 15:45:09 -04:00
Leo Balter f8456c6dac
s/assertEquals/assert.sameValue/g (#1324)
Ref f1602088e6 (commitcomment-25237057)
2017-10-27 12:20:34 -04:00
Leo Balter fafd465454
Merge pull request #1303 from bocoup/classfields
classfields: eval early errors
2017-10-27 12:03:18 -04:00
Rick Waldron f1602088e6 Merge pull request #1320 from littledan/bigint-tostringtag
BigInt: Add test for BigInt.prototype[Symbol.toStringTag]
2017-10-27 11:44:19 -04:00
Rick Waldron 752ead469d Merge pull request #1322 from leobalter/missing-gen
Missing generators flags
2017-10-27 11:43:11 -04:00
Leo Balter b8d1a29f2d
Re-generate tests 2017-10-26 19:04:57 -04:00
Leo Balter 4e191e5b65
Add missing generators flags in templates 2017-10-26 19:04:57 -04:00
Leo Balter f8f5a7a1e7
Add missing generators flags 2017-10-26 19:04:57 -04:00
Rick Waldron e38587ec2c Merge pull request #1315 from cxielarko/bigint-ta-2
BigInt64Array/BigUint64Array
2017-10-26 11:38:59 -04:00
Rick Waldron 3bab611979 Merge pull request #1314 from thejoshwolfe/bitshift
BigInt bitshift operators
2017-10-26 11:31:36 -04:00