mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-06 05:53:22 -05:00
App dock test compares the floating window's rect
This commit is contained in:
1 parent
562104ebf9
commit
a744dc0da2
1 file changed
+1
-1
@@ -279,7 +279,7 @@ fn docking_survives_native_settings_file_reload() {
|
||||
restored_app.run("ui.dock", serde_json::json!({"operation":"open", "panel":"tools"})).unwrap();
|
||||
assert_eq!(
|
||||
restored_app.ui.docking.as_ref().unwrap().layout().floating.iter().find(|g| g.contains(&Panel::Tools)).unwrap().rect,
|
||||
[70.0, 80.0, 310.0, 500.0]
|
||||
egui::Rect::from_min_size(egui::pos2(70.0, 80.0), egui::vec2(310.0, 500.0))
|
||||
);
|
||||
std::fs::remove_dir_all(d).unwrap();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user