Complete canvas scope wiring and use Tokio for mounted Scenario test
This commit is contained in:
@@ -65,6 +65,7 @@ impl App {
|
|||||||
owner: context.owner,
|
owner: context.owner,
|
||||||
revision: context.revision,
|
revision: context.revision,
|
||||||
epoch: lifetime,
|
epoch: lifetime,
|
||||||
|
scenario_view: None,
|
||||||
};
|
};
|
||||||
if self.behavior.has_pending()
|
if self.behavior.has_pending()
|
||||||
|| self.draft_dirty()
|
|| self.draft_dirty()
|
||||||
|
|||||||
@@ -166,9 +166,8 @@ fn source_cross_layer_owner_retarget_undo_redo_keeps_requested_saved_uuid() {
|
|||||||
retarget(true);
|
retarget(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[tokio::test]
|
||||||
fn source_deleted_owner_and_saved_view_mount_unavailable_instead_of_another_behavior() {
|
async fn source_deleted_owner_and_saved_view_mount_unavailable_instead_of_another_behavior() {
|
||||||
iced::futures::executor::block_on(async {
|
|
||||||
let mut f = fixture();
|
let mut f = fixture();
|
||||||
let before = f.app.document.snapshot();
|
let before = f.app.document.snapshot();
|
||||||
let mut expected = before.decoded.project.clone();
|
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.project(), &expected);
|
||||||
assert_eq!(f.app.document.bundle(), &adopted.bundle);
|
assert_eq!(f.app.document.bundle(), &adopted.bundle);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user