Complete canvas scope wiring and use Tokio for mounted Scenario test

This commit is contained in:
2026-09-12 23:35:34 -07:00
parent 2c9cd2b3e6
commit 83e840e37f
2 changed files with 58 additions and 59 deletions
@@ -65,6 +65,7 @@ impl App {
owner: context.owner,
revision: context.revision,
epoch: lifetime,
scenario_view: None,
};
if self.behavior.has_pending()
|| self.draft_dirty()
@@ -166,9 +166,8 @@ fn source_cross_layer_owner_retarget_undo_redo_keeps_requested_saved_uuid() {
retarget(true);
}
#[test]
fn source_deleted_owner_and_saved_view_mount_unavailable_instead_of_another_behavior() {
iced::futures::executor::block_on(async {
#[tokio::test]
async fn source_deleted_owner_and_saved_view_mount_unavailable_instead_of_another_behavior() {
let mut f = fixture();
let before = f.app.document.snapshot();
let mut expected = before.decoded.project.clone();
@@ -225,7 +224,6 @@ fn source_deleted_owner_and_saved_view_mount_unavailable_instead_of_another_beha
);
assert_eq!(f.app.project(), &expected);
assert_eq!(f.app.document.bundle(), &adopted.bundle);
});
}
#[test]