Window trials: the settle loop runs its frames one by one (clippy)

This commit is contained in:
aiongg committed 2026-11-25 19:21:48 +00:00
1 parent 8fa4db64a9
commit 6a78a88ace
1 file changed
+7 -1
@@ -479,7 +479,13 @@ fn a_layer_in_a_popup_window_keeps_its_scroll_until_it_closes() {
});
})
};
let settled = || (0..PAST_THE_WAIT).map(|_| frame()).last().expect("frames ran");
let settled = || {
let mut out = frame();
for _ in 1..PAST_THE_WAIT {
out = frame();
}
out
};
let palette = builder_titled(&frame(), "tool").0;
open.set(true);
assert!(popup_window(&settled(), palette).is_some(), "the layer opened in the palette shows in a popup window");