Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import yoga tests #320

Merged
merged 17 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[alias]
gentest = "run --release --package gentest --"
gentest = "run --release --package gentest --"
import-yoga-tests = "run --package import-yoga-tests --"
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Once you have chromedriver installed and available in `PATH` you can re-generate

To add a new test case add another HTML file to `/test_fixtures` following the current tests as a template for new tests.

**Note: test fixtures (HTML files in the `text_fixtures` directory) that begin with an "x" are considered disabled, and the test generation script will not generate a test for them (and as the test generation script overwrites the entire directory when generating tests, this means that prefixing an existing test with an "x" and then running the test generation script will delete that test)**

### Writing tests

1. All tests should be wrapped in a module called `tests` gated by the standard `test` feature flag, to ensure they are not compiled unless tests are being run.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ path = "benches/big_tree.rs"
harness = false

[workspace]
members = ["scripts/gentest"]
members = ["scripts/gentest", "scripts/import-yoga-tests"]
74 changes: 74 additions & 0 deletions benches/generated/absolute_child_with_cross_margin.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions benches/generated/absolute_child_with_main_margin.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions benches/generated/absolute_child_with_max_height.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions benches/generated/absolute_layout_percentage_height.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions benches/generated/absolute_layout_row_width_height_end_bottom.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions benches/generated/align_baseline_child.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions benches/generated/align_baseline_child_top.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading