Merge branch 'batch/r2-1' into batch/r2-2

This commit is contained in:
bflatastic
2026-10-24 09:39:28 +07:00
+2 -1
View File
@@ -170,7 +170,8 @@ fn a_saved_file_opened_again_gets_its_tab_back() {
u.run("file.close", json!({"index": 0})); u.run("file.close", json!({"index": 0}));
u.run("file.open", json!({"path": path})); u.run("file.open", json!({"path": path}));
u.run("proto.present", json!({"start": a})); u.run("proto.present", json!({"start": a}));
assert_eq!(tabs(&u), json!([{"name": "Untitled - Page 1", "active": true}])); // Saved as Proto.figcraft: the file's title follows its name.
assert_eq!(tabs(&u), json!([{"name": "Proto - Page 1", "active": true}]));
u.key(pos2(700.0, 500.0), Key::Escape); u.key(pos2(700.0, 500.0), Key::Escape);
assert!(!u.app.ui.home, "back to its file"); assert!(!u.app.ui.home, "back to its file");
assert_eq!(tabs(&u), json!([])); assert_eq!(tabs(&u), json!([]));