Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Fix flow test runner #680

Merged
merged 5 commits into from
Aug 31, 2017
Merged

Fix flow test runner #680

merged 5 commits into from
Aug 31, 2017

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Aug 19, 2017

Q A
Bug fix? no
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? yes
Fixed tickets
License MIT

Currently Babylon is tested using the flow parser test suite, but:

I have added a flow_tests_whitelist.txt, which declares expected failures (like it was done for Test262 – #654)


Since run_flow_tests.js now has several code very similar to the Test262 runner, I could extract it in a generic ExternalTestsRunner utility, but I'd prefer to do that in a different PR to keep things simple.

This change has two reasons:
- The object was actually used as a map
- Using an object leads some problems with the
  private_class_fields/constructor.js test, since
  `tests[test_name] || {}` returned the Obejct
  constructor instead of an empty object.
@hzoo hzoo merged commit c6b2c6b into babel:master Aug 31, 2017
@nicolo-ribaudo nicolo-ribaudo deleted the flow-tests branch August 31, 2017 18:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants