Commit Graph

2511 Commits

Author SHA1 Message Date
André Bargull 1abd6c6593 Extend coverage for Intl.getCanonicalLocales 2017-12-19 15:42:56 -05:00
André Bargull 9b54779018 Add tests for recompilation in @@split 2017-12-19 15:42:56 -05:00
André Bargull eecf0fd06b Add tests for html-comments in Function constructor call 2017-12-19 15:42:56 -05:00
Rick Waldron b4a146ec8f
Merge pull request #1371 from littledan/remove-blank-lines
Remove some spurious blank lines
2017-12-19 14:50:04 -05:00
Rick Waldron fee6c1dfac
Merge pull request #1363 from jugglinmike/extend-install
Formalize installation procedure
2017-12-19 14:36:02 -05:00
Mike Pennisi 025b44f38c Refactor AssignmentExpression tests for parsers
A number of tests for the parsing of the AssignmentExpression production
were expressed using `eval`. This made the tests more complex than
necessary, and also prevented the tests from providing value to
ECMAScript parsers.

Remove the use of `eval` in the relevant tests and instead express the
expectations with literal source text. Remove superfluous "onlyStrict"
restriction from tests by declaring the probe binding prior to
assignment.
2017-12-10 15:59:11 -05:00
Mike Pennisi f3bb0de6b2 Correct metadata reference in "contributing" docs 2017-12-10 14:24:16 -05:00
Daniel Ehrenberg c48cd085ae Remove some spurious blank lines
A few BigInt tests had a blank line in an inconvenient place which
breaks an old, possibly incorrect YAML parser used by V8's test262
test automation. The best fix is to deploy a new YAML parser, but
in the short term, this patch deletes the blank lines and lets
V8 understand the feature flags below. Related: #1370
2017-12-08 16:56:51 +01:00
Mike Pennisi 4ff280f1fb Document steps for satisfying tool dependencies 2017-12-02 23:09:24 -05:00
Mike Pennisi 670a525fd6 Install linter dependencies in CI
Ensure that the linter's Python dependencies are satisfied in the
continuous integration environment.

Note that this is not currently necessary but only because the linter's
dependencies happen to align with those of the test generation tool. The
dependencies of the two tool should be satisfied explicitly in order to
promote isolation.
2017-12-02 23:05:23 -05:00
André Bargull 8311965251 Fix copy-paste bugs in BigInt tests (#1361) 2017-12-01 14:16:43 -05:00
Rick Waldron 3d258fd290
Merge pull request #1359 from leobalter/class-private-tags
Split class fields tags
2017-11-28 16:15:34 -05:00
Leo Balter 6f8c89dfd1
Update class public fields tags in non-generated test files 2017-11-28 13:02:21 -05:00
Leo Balter a488271931
Update class fields tags in non-generated test files 2017-11-28 12:59:27 -05:00
Leo Balter d142f75468
Regenerate tests 2017-11-28 12:49:12 -05:00
Leo Balter e6532d50b6
Update class-fields tags in the features list 2017-11-28 12:48:02 -05:00
Leo Balter 3e2d3495c8
Add features for class public fields 2017-11-28 12:46:58 -05:00
Leo Balter 358f03f824
Add class-fields-private tags for matches using # 2017-11-28 12:08:58 -05:00
Leo Balter 77c70a514d
Merge pull request #1344 from leobalter/class-fields-same-name
Class fields with the same name
2017-11-28 10:35:27 -05:00
Isiah Meadows 6ca3634d1b Broken error message in test (#1358)
Fixes #1355
2017-11-28 10:34:04 -05:00
Justin Ridgewell da61938f8f Fix several Decode tests (#1357)
The tests are explicitly for bad hex chars at certain indexes, and that
rogue `%` was giving false positives.
2017-11-27 12:28:17 -05:00
Daniel Ehrenberg 1702336a77 Test change in PluralRules default options semantics (#1350)
The change is done in the following patch, where default options
have a null prototype. This matches what other Intl objects have.
1abe8af440
2017-11-21 14:13:44 -05:00
Leo Balter fe1b7e2a74
Merge pull request #1349 from caiolima/big-int-constructor-obj
Added missing cases into BigIntConstructor with String parameters
2017-11-21 14:11:42 -05:00
Leo Balter 168cc4c638
Improve Array#sort tests for verifying non callable comparefn (#1352)
Fix #1345
2017-11-21 11:41:18 -05:00
Rick Waldron 3981242226 Let paramVarEnv be NewDeclarativeEnvironment(originalEnv). (#1348)
Originally discovered by Cait Potter (@caitp), reported in irc.mozilla.org#jslang
2017-11-20 15:05:20 -05:00
Caio Lima dd72bf0d26 Added case when Object has valueOf and toString 2017-11-17 00:22:13 -02:00
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