Regenerate JS generated tests (YGGapTest, YGIntrinsicSizeTest) (#2002)
Summary: Pull Request resolved: https://github.com/react/yoga/pull/2002
Re-runs gentest to update the JS generated tests for YGGapTest and YGIntrinsicSizeTest, which were out of date with the current gentest output. The gentest-validate consistency CI check flagged them after the disabled intrinsic-sizing tests were removed.
Reviewed By: cortinico
Differential Revision: D113539407
fbshipit-source-id: 1fd4a73807e7c603d84ea2a250ea60d78726fa10
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Yoga

Yoga is an embeddable and performant flexbox layout engine with bindings for multiple languages.
Building
Yoga’s main implementation targets C++ 20 with accompanying build logic in CMake. A wrapper is provided to build the main library and run unit tests.
While not required, this script will use ninja if it is installed for faster builds.
Yoga is additionally part of the vcpkg collection of ports maintained by Microsoft and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.
Adding Tests
Many of Yoga’s tests are automatically generated, using HTML fixtures describing node structure. These are rendered in Chrome to generate an expected layout result for the tree. New fixtures can be added to
gentest/fixtures.To generate new tests from added fixtures:
yarn installto install dependencies for the test generator.yarn gentestin theyogadirectory.Debugging
Yoga provides a VSCode “launch.json” configuration which allows debugging unit tests. Simply add your breakpoints, and run “Debug C++ Unit tests (lldb)” (or “Debug C++ Unit tests (vsdbg)” on Windows).