test: preserve stable frames after collecting lazy driver helpers
Verify Tessera GUI / verify (push) Failing after 9m29s

This commit is contained in:
2026-10-23 11:42:23 +08:00
parent fc0634e79f
commit 05403e6996
3 changed files with 26 additions and 0 deletions
+21
View File
@@ -3221,6 +3221,27 @@ page.render(block)
)
}
#[test]
fn collecting_lazy_helpers_does_not_invalidate_stable_layout_or_paint() {
for source in [
include_str!("../examples/flex-constraints.endor"),
include_str!("../examples/source-paint.endor"),
] {
let (mut session, initial) = ReplSession::load(source, "app.main", 281, 1).unwrap();
session
.bridge
.reclaim(&mut session.candidate.vm, &mut session.candidate.roots)
.unwrap();
assert!(session.refresh_document().unwrap().is_none());
assert_eq!(
session.documents[&crate::window::MAIN_WINDOW]
.frame
.layout_version,
initial.frame.layout_version
);
}
}
#[test]
fn layout_and_paint_prepare_keep_only_current_occurrence_managed_helpers() {
for copies in [160, 640] {