Support toggling lazyLayout after layout attributes are applied (DISABLED_canToggleLazyLayout)

Abierto
#230 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
75/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp
Área
frontend, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
16.4k
Forks
539
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Snapchat/Valdi

Todos los issues de Snapchat/Valdi

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.