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

change layout back to be relative #6

Merged
merged 3 commits into from
May 10, 2022
Merged

change layout back to be relative #6

merged 3 commits into from
May 10, 2022

Conversation

mockersf
Copy link
Contributor

Revert #2 and vislyhq/stretch#87
The test from #2 is still present and still successful.

With those two PRs, the value returned for location is the absolute value. Without, the value is relative to its parent.

The test expect the value to be relative, as for example in this test:
https://github.com/DioxusLabs/stretch/blob/02033c0e8f52c9d12c40557804162eadd3f8a3a2/tests/generated/flex_basis_slightly_smaller_then_content_with_flex_grow_large_size.rs#L77-L84
where node10 has a location.x of 0 even though its parent node1 has a location.x of 80

This PR makes it work OK for Bevy again

@jkelleyrtp jkelleyrtp requested a review from ealmloff May 10, 2022 22:24
@mockersf mockersf changed the title remove round_layout changes change layout back to be relative May 10, 2022
Copy link
Member

@ealmloff ealmloff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. It would be nice to get the generated tests working again. The position being relative fixes the re-layout movement issue #2 fixed, and it is trivial for any downstream crate to get the absolute position, if they want it.
Thank You!

@mockersf
Copy link
Contributor Author

It would be nice to get the generated tests working again.

cargo test
   Compiling stretch2 v0.4.2 (/stretch)
    Finished test [unoptimized + debuginfo] target(s) in 1.83s
     Running unittests (target/debug/deps/stretch2-151aa19dafd47c57)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/fixtures.rs (target/debug/deps/fixtures-7b1a523de28e1a53)

running 238 tests
test generated::absolute_layout_align_items_and_justify_content_center_and_top_position::absolute_layout_align_items_and_justify_content_center_and_top_position ... ok
test generated::absolute_layout_align_items_and_justify_content_center_and_bottom_position::absolute_layout_align_items_and_justify_content_center_and_bottom_position ... ok
test generated::absolute_layout_align_items_and_justify_content_center_and_right_position::absolute_layout_align_items_and_justify_content_center_and_right_position ... ok
test generated::absolute_layout_align_items_and_justify_content_flex_end::absolute_layout_align_items_and_justify_content_flex_end ... ok
test generated::absolute_layout_align_items_center::absolute_layout_align_items_center ... ok
test generated::absolute_layout_align_items_center_on_child_only::absolute_layout_align_items_center_on_child_only ... ok
test generated::absolute_layout_child_order::absolute_layout_child_order ... ok
test generated::absolute_layout_align_items_and_justify_content_center::absolute_layout_align_items_and_justify_content_center ... ok
test generated::absolute_layout_in_wrap_reverse_column_container::absolute_layout_in_wrap_reverse_column_container ... ok
test generated::absolute_layout_align_items_and_justify_content_center_and_left_position::absolute_layout_align_items_and_justify_content_center_and_left_position ... ok
test generated::absolute_layout_in_wrap_reverse_column_container_flex_end::absolute_layout_in_wrap_reverse_column_container_flex_end ... ok
test generated::absolute_layout_justify_content_center::absolute_layout_justify_content_center ... ok
test generated::absolute_layout_in_wrap_reverse_row_container::absolute_layout_in_wrap_reverse_row_container ... ok
test generated::absolute_layout_start_top_end_bottom::absolute_layout_start_top_end_bottom ... ok
test generated::absolute_layout_percentage_bottom_based_on_parent_height::absolute_layout_percentage_bottom_based_on_parent_height ... ok
test generated::absolute_layout_width_height_end_bottom::absolute_layout_width_height_end_bottom ... ok
test generated::absolute_layout_width_height_start_top::absolute_layout_width_height_start_top ... ok
test generated::absolute_layout_width_height_start_top_end_bottom::absolute_layout_width_height_start_top_end_bottom ... ok
test generated::absolute_layout_in_wrap_reverse_row_container_flex_end::absolute_layout_in_wrap_reverse_row_container_flex_end ... ok
test generated::absolute_layout_within_border::absolute_layout_within_border ... ok
test generated::absolute_layout_no_size::absolute_layout_no_size ... ok
test generated::align_baseline::align_baseline ... ok
test generated::align_baseline_nested_child::align_baseline_nested_child ... ok
test generated::align_baseline_child_multiline::align_baseline_child_multiline ... ok
test generated::align_center_should_size_based_on_content::align_center_should_size_based_on_content ... ok
test generated::align_flex_start_with_shrinking_children::align_flex_start_with_shrinking_children ... ok
test generated::align_flex_start_with_shrinking_children_with_stretch::align_flex_start_with_shrinking_children_with_stretch ... ok
test generated::align_items_center::align_items_center ... ok
test generated::align_flex_start_with_stretching_children::align_flex_start_with_stretching_children ... ok
test generated::align_items_center_child_with_margin_bigger_than_parent::align_items_center_child_with_margin_bigger_than_parent ... ok
test generated::align_items_center_with_child_margin::align_items_center_with_child_margin ... ok
test generated::align_items_center_child_without_margin_bigger_than_parent::align_items_center_child_without_margin_bigger_than_parent ... ok
test generated::align_items_center_with_child_top::align_items_center_with_child_top ... ok
test generated::align_items_flex_end::align_items_flex_end ... ok
test generated::align_items_flex_end_child_with_margin_bigger_than_parent::align_items_flex_end_child_with_margin_bigger_than_parent ... ok
test generated::align_items_flex_start::align_items_flex_start ... ok
test generated::align_items_flex_end_child_without_margin_bigger_than_parent::align_items_flex_end_child_without_margin_bigger_than_parent ... ok
test generated::align_items_min_max::align_items_min_max ... ok
test generated::align_items_stretch::align_items_stretch ... ok
test generated::align_self_baseline::align_self_baseline ... ok
test generated::align_self_center::align_self_center ... ok
test generated::align_self_flex_end::align_self_flex_end ... ok
test generated::align_self_flex_end_override_flex_start::align_self_flex_end_override_flex_start ... ok
test generated::align_self_flex_start::align_self_flex_start ... ok
test generated::align_strech_should_size_based_on_parent::align_strech_should_size_based_on_parent ... ok
test generated::border_center_child::border_center_child ... ok
test generated::border_flex_child::border_flex_child ... ok
test generated::border_no_child::border_no_child ... ok
test generated::border_stretch_child::border_stretch_child ... ok
test generated::child_min_max_width_flexing::child_min_max_width_flexing ... ok
test generated::container_with_unsized_child::container_with_unsized_child ... ok
test generated::display_none_fixed_size::display_none_fixed_size ... ok
test generated::display_none::display_none ... ok
test generated::display_none_with_child::display_none_with_child ... ok
test generated::display_none_with_margin::display_none_with_margin ... ok
test generated::display_none_with_position::display_none_with_position ... ok
test generated::flex_basis_and_main_dimen_set_when_flexing::flex_basis_and_main_dimen_set_when_flexing ... ok
test generated::flex_basis_flex_grow_column::flex_basis_flex_grow_column ... ok
test generated::flex_basis_flex_grow_row::flex_basis_flex_grow_row ... ok
test generated::flex_basis_flex_shrink_column::flex_basis_flex_shrink_column ... ok
test generated::flex_basis_flex_shrink_row::flex_basis_flex_shrink_row ... ok
test generated::flex_basis_larger_than_content_column::flex_basis_larger_than_content_column ... ok
test generated::flex_basis_larger_than_content_row::flex_basis_larger_than_content_row ... ok
test generated::flex_basis_overrides_main_size::flex_basis_overrides_main_size ... ok
test generated::flex_basis_slightly_smaller_then_content_with_flex_grow_large_size::flex_basis_slightly_smaller_then_content_with_flex_grow_large_size ... ok
test generated::flex_basis_smaller_than_content_column::flex_basis_smaller_than_content_column ... ok
test generated::flex_basis_smaller_than_content_row::flex_basis_smaller_than_content_row ... ok
test generated::flex_basis_smaller_than_main_dimen_column::flex_basis_smaller_than_main_dimen_column ... ok
test generated::flex_basis_smaller_than_main_dimen_row::flex_basis_smaller_than_main_dimen_row ... ok
test generated::flex_basis_smaller_then_content_with_flex_grow_large_size::flex_basis_smaller_then_content_with_flex_grow_large_size ... ok
test generated::flex_basis_smaller_then_content_with_flex_grow_small_size::flex_basis_smaller_then_content_with_flex_grow_small_size ... ok
test generated::flex_basis_smaller_then_content_with_flex_grow_unconstraint_size::flex_basis_smaller_then_content_with_flex_grow_unconstraint_size ... ok
test generated::flex_basis_smaller_then_content_with_flex_grow_very_large_size::flex_basis_smaller_then_content_with_flex_grow_very_large_size ... ok
test generated::flex_basis_unconstraint_column::flex_basis_unconstraint_column ... ok
test generated::flex_basis_unconstraint_row::flex_basis_unconstraint_row ... ok
test generated::flex_direction_column::flex_direction_column ... ok
test generated::flex_direction_column_no_height::flex_direction_column_no_height ... ok
test generated::flex_direction_column_reverse::flex_direction_column_reverse ... ok
test generated::flex_direction_row::flex_direction_row ... ok
test generated::flex_direction_row_no_width::flex_direction_row_no_width ... ok
test generated::flex_grow_child::flex_grow_child ... ok
test generated::flex_direction_row_reverse::flex_direction_row_reverse ... ok
test generated::flex_grow_flex_basis_percent_min_max::flex_grow_flex_basis_percent_min_max ... ok
test generated::flex_grow_height_maximized::flex_grow_height_maximized ... ok
test generated::flex_grow_in_at_most_container::flex_grow_in_at_most_container ... ok
test generated::flex_grow_less_than_factor_one::flex_grow_less_than_factor_one ... ok
test generated::flex_grow_root_minimized::flex_grow_root_minimized ... ok
test generated::flex_grow_shrink_at_most::flex_grow_shrink_at_most ... ok
test generated::flex_grow_to_min::flex_grow_to_min ... ok
test generated::flex_grow_within_constrained_max_column::flex_grow_within_constrained_max_column ... ok
test generated::flex_grow_within_constrained_max_row::flex_grow_within_constrained_max_row ... ok
test generated::flex_grow_within_constrained_max_width::flex_grow_within_constrained_max_width ... ok
test generated::flex_grow_within_constrained_min_max_column::flex_grow_within_constrained_min_max_column ... ok
test generated::flex_grow_within_constrained_min_column::flex_grow_within_constrained_min_column ... ok
test generated::flex_grow_within_constrained_min_row::flex_grow_within_constrained_min_row ... ok
test generated::flex_grow_within_max_width::flex_grow_within_max_width ... ok
test generated::flex_root_ignored::flex_root_ignored ... ok
test generated::flex_shrink_by_outer_margin_with_max_size::flex_shrink_by_outer_margin_with_max_size ... ok
test generated::flex_shrink_flex_grow_child_flex_shrink_other_child::flex_shrink_flex_grow_child_flex_shrink_other_child ... ok
test generated::flex_shrink_flex_grow_row::flex_shrink_flex_grow_row ... ok
test generated::flex_shrink_to_zero::flex_shrink_to_zero ... ok
test generated::flex_wrap_align_stretch_fits_one_row::flex_wrap_align_stretch_fits_one_row ... ok
test generated::flex_wrap_children_with_min_main_overriding_flex_basis::flex_wrap_children_with_min_main_overriding_flex_basis ... ok
test generated::justify_content_column_center::justify_content_column_center ... ok
test generated::flex_wrap_wrap_to_child_height::flex_wrap_wrap_to_child_height ... ok
test generated::justify_content_column_flex_end::justify_content_column_flex_end ... ok
test generated::justify_content_column_min_height_and_margin_bottom::justify_content_column_min_height_and_margin_bottom ... ok
test generated::justify_content_column_flex_start::justify_content_column_flex_start ... ok
test generated::justify_content_column_min_height_and_margin_top::justify_content_column_min_height_and_margin_top ... ok
test generated::justify_content_column_space_around::justify_content_column_space_around ... ok
test generated::justify_content_column_space_between::justify_content_column_space_between ... ok
test generated::justify_content_min_max::justify_content_min_max ... ok
test generated::justify_content_column_space_evenly::justify_content_column_space_evenly ... ok
test generated::justify_content_min_width_with_padding_child_width_greater_than_parent::justify_content_min_width_with_padding_child_width_greater_than_parent ... ok
test generated::justify_content_overflow_min_max::justify_content_overflow_min_max ... ok
test generated::justify_content_row_center::justify_content_row_center ... ok
test generated::justify_content_row_flex_end::justify_content_row_flex_end ... ok
test generated::justify_content_row_flex_start::justify_content_row_flex_start ... ok
test generated::justify_content_min_width_with_padding_child_width_lower_than_parent::justify_content_min_width_with_padding_child_width_lower_than_parent ... ok
test generated::justify_content_row_max_width_and_margin::justify_content_row_max_width_and_margin ... ok
test generated::justify_content_row_min_width_and_margin::justify_content_row_min_width_and_margin ... ok
test generated::justify_content_row_space_around::justify_content_row_space_around ... ok
test generated::justify_content_row_space_evenly::justify_content_row_space_evenly ... ok
test generated::margin_and_flex_column::margin_and_flex_column ... ok
test generated::justify_content_row_space_between::justify_content_row_space_between ... ok
test generated::margin_and_stretch_column::margin_and_stretch_column ... ok
test generated::margin_and_flex_row::margin_and_flex_row ... ok
test generated::margin_and_stretch_row::margin_and_stretch_row ... ok
test generated::margin_auto_bottom::margin_auto_bottom ... ok
test generated::margin_auto_bottom_and_top::margin_auto_bottom_and_top ... ok
test generated::margin_auto_bottom_and_top_justify_center::margin_auto_bottom_and_top_justify_center ... ok
test generated::margin_auto_left::margin_auto_left ... ok
test generated::margin_auto_left_and_right::margin_auto_left_and_right ... ok
test generated::margin_auto_left_and_right_column::margin_auto_left_and_right_column ... ok
test generated::margin_auto_left_and_right_column_and_center::margin_auto_left_and_right_column_and_center ... ok
test generated::margin_auto_left_and_right_strech::margin_auto_left_and_right_strech ... ok
test generated::margin_auto_left_fix_right_child_bigger_than_parent::margin_auto_left_fix_right_child_bigger_than_parent ... ok
test generated::margin_auto_left_child_bigger_than_parent::margin_auto_left_child_bigger_than_parent ... ok
test generated::margin_auto_left_right_child_bigger_than_parent::margin_auto_left_right_child_bigger_than_parent ... ok
test generated::margin_auto_left_stretching_child::margin_auto_left_stretching_child ... ok
test generated::margin_auto_mutiple_children_column::margin_auto_mutiple_children_column ... ok
test generated::margin_auto_mutiple_children_row::margin_auto_mutiple_children_row ... ok
test generated::margin_auto_right::margin_auto_right ... ok
test generated::margin_auto_top::margin_auto_top ... ok
test generated::margin_auto_top_and_bottom_strech::margin_auto_top_and_bottom_strech ... ok
test generated::margin_auto_top_stretching_child::margin_auto_top_stretching_child ... ok
test generated::margin_bottom::margin_bottom ... ok
test generated::margin_fix_left_auto_right_child_bigger_than_parent::margin_fix_left_auto_right_child_bigger_than_parent ... ok
test generated::margin_left::margin_left ... ok
test generated::margin_should_not_be_part_of_max_height::margin_should_not_be_part_of_max_height ... ok
test generated::margin_right::margin_right ... ok
test generated::margin_should_not_be_part_of_max_width::margin_should_not_be_part_of_max_width ... ok
test generated::margin_top::margin_top ... ok
test generated::margin_with_sibling_column::margin_with_sibling_column ... ok
test generated::margin_with_sibling_row::margin_with_sibling_row ... ok
test generated::max_height::max_height ... ok
test generated::max_height_overrides_height::max_height_overrides_height ... ok
test generated::max_height_overrides_height_on_root::max_height_overrides_height_on_root ... ok
test generated::max_width::max_width ... ok
test generated::max_width_overrides_width_on_root::max_width_overrides_width_on_root ... ok
test generated::max_width_overrides_width::max_width_overrides_width ... ok
test generated::min_height::min_height ... ok
test generated::min_height_overrides_height::min_height_overrides_height ... ok
test generated::min_height_overrides_height_on_root::min_height_overrides_height_on_root ... ok
test generated::min_max_percent_no_width_height::min_max_percent_no_width_height ... ok
test generated::min_width::min_width ... ok
test generated::min_width_overrides_width_on_root::min_width_overrides_width_on_root ... ok
test generated::min_width_overrides_width::min_width_overrides_width ... ok
test generated::nested_overflowing_child::nested_overflowing_child ... ok
test generated::overflow_main_axis::overflow_main_axis ... ok
test generated::overflow_cross_axis::overflow_cross_axis ... ok
test generated::padding_align_end_child::padding_align_end_child ... ok
test generated::nested_overflowing_child_in_constraint_parent::nested_overflowing_child_in_constraint_parent ... ok
test generated::padding_center_child::padding_center_child ... ok
test generated::padding_flex_child::padding_flex_child ... ok
test generated::padding_no_child::padding_no_child ... ok
test generated::padding_stretch_child::padding_stretch_child ... ok
test generated::percent_absolute_position::percent_absolute_position ... ok
test generated::parent_wrap_child_size_overflowing_parent::parent_wrap_child_size_overflowing_parent ... ok
test generated::percentage_absolute_position::percentage_absolute_position ... ok
test generated::percent_within_flex_grow::percent_within_flex_grow ... ok
test generated::percentage_flex_basis::percentage_flex_basis ... ok
test generated::percentage_flex_basis_cross::percentage_flex_basis_cross ... ok
test generated::percentage_container_in_wrapping_container::percentage_container_in_wrapping_container ... ok
test generated::percentage_flex_basis_cross_max_height::percentage_flex_basis_cross_max_height ... ok
test generated::percentage_flex_basis_cross_max_width::percentage_flex_basis_cross_max_width ... ok
test generated::percentage_flex_basis_cross_min_height::percentage_flex_basis_cross_min_height ... ok
test generated::percentage_flex_basis_cross_min_width::percentage_flex_basis_cross_min_width ... ok
test generated::percentage_flex_basis_main_max_height::percentage_flex_basis_main_max_height ... ok
test generated::percentage_flex_basis_main_min_width::percentage_flex_basis_main_min_width ... ok
test generated::percentage_flex_basis_main_max_width::percentage_flex_basis_main_max_width ... ok
test generated::percentage_margin_should_calculate_based_only_on_width::percentage_margin_should_calculate_based_only_on_width ... ok
test generated::percentage_position_bottom_right::percentage_position_bottom_right ... ok
test generated::percentage_padding_should_calculate_based_only_on_width::percentage_padding_should_calculate_based_only_on_width ... ok
test generated::percentage_position_left_top::percentage_position_left_top ... ok
test generated::percentage_size_based_on_parent_inner_size::percentage_size_based_on_parent_inner_size ... ok
test generated::percentage_multiple_nested_with_padding_margin_and_percentage_values::percentage_multiple_nested_with_padding_margin_and_percentage_values ... ok
test generated::percentage_size_of_flex_basis::percentage_size_of_flex_basis ... ok
test generated::percentage_width_height::percentage_width_height ... ok
test generated::percentage_width_height_undefined_parent_size::percentage_width_height_undefined_parent_size ... ok
test generated::relative_position_should_not_nudge_siblings::relative_position_should_not_nudge_siblings ... ok
test generated::rounding_flex_basis_flex_grow_row_prime_number_width::rounding_flex_basis_flex_grow_row_prime_number_width ... ok
test generated::rounding_flex_basis_flex_grow_row_width_of_100::rounding_flex_basis_flex_grow_row_width_of_100 ... ok
test generated::rounding_flex_basis_overrides_main_size::rounding_flex_basis_overrides_main_size ... ok
test generated::rounding_flex_basis_flex_shrink_row::rounding_flex_basis_flex_shrink_row ... ok
test generated::rounding_fractial_input_2::rounding_fractial_input_2 ... ok
test generated::rounding_fractial_input_3::rounding_fractial_input_3 ... ok
test generated::rounding_fractial_input_1::rounding_fractial_input_1 ... ok
test generated::rounding_fractial_input_4::rounding_fractial_input_4 ... ok
test generated::rounding_total_fractial::rounding_total_fractial ... ok
test generated::size_defined_by_child::size_defined_by_child ... ok
test generated::rounding_total_fractial_nested::rounding_total_fractial_nested ... ok
test generated::size_defined_by_child_with_border::size_defined_by_child_with_border ... ok
test generated::size_defined_by_child_with_padding::size_defined_by_child_with_padding ... ok
test generated::size_defined_by_grand_child::size_defined_by_grand_child ... ok
test generated::width_smaller_then_content_with_flex_grow_large_size::width_smaller_then_content_with_flex_grow_large_size ... ok
test generated::width_smaller_then_content_with_flex_grow_small_size::width_smaller_then_content_with_flex_grow_small_size ... ok
test generated::wrap_column::wrap_column ... ok
test generated::width_smaller_then_content_with_flex_grow_unconstraint_size::width_smaller_then_content_with_flex_grow_unconstraint_size ... ok
test generated::width_smaller_then_content_with_flex_grow_very_large_size::width_smaller_then_content_with_flex_grow_very_large_size ... ok
test generated::wrap_reverse_column::wrap_reverse_column ... ok
test generated::wrap_reverse_column_fixed_size::wrap_reverse_column_fixed_size ... ok
test generated::wrap_nodes_with_content_sizing_overflowing_margin::wrap_nodes_with_content_sizing_overflowing_margin ... ok
test generated::wrap_reverse_row::wrap_reverse_row ... ok
test generated::wrap_reverse_row_align_content_center::wrap_reverse_row_align_content_center ... ok
test generated::wrap_nodes_with_content_sizing_margin_cross::wrap_nodes_with_content_sizing_margin_cross ... ok
test generated::wrap_reverse_row_align_content_flex_start::wrap_reverse_row_align_content_flex_start ... ok
test generated::wrap_reverse_row_align_content_space_around::wrap_reverse_row_align_content_space_around ... ok
test generated::wrap_reverse_row_align_content_stretch::wrap_reverse_row_align_content_stretch ... ok
test generated::wrap_reverse_row_single_line_different_size::wrap_reverse_row_single_line_different_size ... ok
test generated::wrap_row::wrap_row ... ok
test generated::wrap_row_align_items_center::wrap_row_align_items_center ... ok
test generated::wrap_row_align_items_flex_end::wrap_row_align_items_flex_end ... ok
test generated::wrapped_column_max_height_flex::wrapped_column_max_height_flex ... ok
test generated::wrapped_column_max_height::wrapped_column_max_height ... ok
test generated::wrapped_row_within_align_items_center::wrapped_row_within_align_items_center ... ok
test generated::wrapped_row_within_align_items_flex_end::wrapped_row_within_align_items_flex_end ... ok
test generated::wrapped_row_within_align_items_flex_start::wrapped_row_within_align_items_flex_start ... ok

test result: ok. 238 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

     Running tests/measure.rs (target/debug/deps/measure-1aeeb32a3e391767)

running 16 tests
test measure::flex_basis_overrides_measure ... ok
test measure::height_overrides_measure ... ok
test measure::measure_absolute_child ... ok
test measure::ignore_invalid_measure ... ok
test measure::measure_child ... ok
test measure::measure_child_constraint ... ok
test measure::measure_child_constraint_padding_parent ... ok
test measure::measure_child_with_flex_grow ... ok
test measure::measure_root ... ok
test measure::measure_child_with_flex_shrink ... ok
test measure::only_measure_once ... ok
test measure::remeasure_child_after_growing ... ok
test measure::remeasure_child_after_shrinking ... ok
test measure::remeasure_child_after_stretching ... ok
test measure::stretch_overrides_measure ... ok
test measure::width_overrides_measure ... ok

test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/node.rs (target/debug/deps/node-1885ca210f3670f2)

running 11 tests
test node::remove_child_at_index ... ok
test node::remove_last_node ... ok
test node::replace_child_at_index ... ok
test node::remove_child ... ok
test node::set_children ... ok
test node::mark_dirty ... ok
test node::add_child ... ok
test node::remove ... ok
test node::children ... ok
test node::set_style ... ok
test node::set_measure ... ok

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/relayout.rs (target/debug/deps/relayout-fa42ce8c7dd95fd3)

running 1 test
test relayout ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/root_constraints.rs (target/debug/deps/root_constraints-c9e23f96cb936356)

running 3 tests
test root_constraints::root_with_percentage_size ... ok
test root_constraints::root_with_larger_size ... ok
test root_constraints::root_with_no_size ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/simple_child.rs (target/debug/deps/simple_child-c60947d109c2900d)

running 1 test
test simple_child ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests stretch2

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

@ealmloff ealmloff merged commit b734676 into DioxusLabs:master May 10, 2022
jkelleyrtp pushed a commit that referenced this pull request Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants