mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 16:24:38 +00:00
craft-esign clear the texture delta the sign-in message test's frame leaves
run_ui's FullOutput carries textures_delta. egui panics on drop when a test never applies or clears it.
This commit is contained in:
1 parent
b0b5c2bf17
commit
820aa7b32c
1 file changed
+2
-1
@@ -843,7 +843,8 @@ mod tests {
|
||||
..Default::default()
|
||||
};
|
||||
let ctx = Context::default();
|
||||
let full = ctx.run_ui(egui::RawInput::default(), |ui| dialog.ui(ui));
|
||||
let mut full = ctx.run_ui(egui::RawInput::default(), |ui| dialog.ui(ui));
|
||||
full.textures_delta.clear();
|
||||
let shown = texts(&full.shapes);
|
||||
assert!(shown.iter().any(|t| t == &dialog.labels.sign_in_first), "sign-in message not shown for an unlinked account: {shown:?}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user