Support toggling lazyLayout after layout attributes are applied (DISABLED_canToggleLazyLayout)

Đang mở
#230 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
frontend, testing

Hướng nghiên cứu

Read valdi/test/runtime/ViewNode_tests.cpp, especially DISABLED_canToggleLazyLayout, and inspect the ViewNode layout state handling it exercises. Run bazel test //valdi:test_runtime --test_filter='ViewNode.*canToggleLazyLayout' --test_arg=--gtest_also_run_disabled_tests to reproduce the failure. Update the layout state handling so toggling lazyLayout after attributes are applied restores the correct layout, remove the DISABLED_ prefix, and confirm the test passes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

ViewNode.DISABLED_canToggleLazyLayout in valdi/test/runtime/ViewNode_tests.cpp is disabled. Switching a node from regular layout to lazyLayout, after its layout attributes have already been applied, doesn't recover: the node's layout is wrong after the switch.

What to do: make the view node rebuild its layout state correctly when lazyLayout is turned on or off after layout attributes have been applied. Then remove the DISABLED_ prefix.

How to run

bazel test //valdi:test_runtime --test_filter='ViewNode.*canToggleLazyLayout' --test_arg=--gtest_also_run_disabled_tests

Done when: the test runs without DISABLED_ and passes.

See CONTRIBUTING.md before opening a pull request.

Ngôn ngữ chính
C++
Star
16.4k
Fork
539
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Snapchat/Valdi

Tất cả issue của Snapchat/Valdi

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.