mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-24 10:27:00 -06:00
#660: a file saved as Proto.figcraft presents as Proto (titles follow file names on main)
This commit is contained in:
@@ -170,7 +170,8 @@ fn a_saved_file_opened_again_gets_its_tab_back() {
|
||||
u.run("file.close", json!({"index": 0}));
|
||||
u.run("file.open", json!({"path": path}));
|
||||
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);
|
||||
assert!(!u.app.ui.home, "back to its file");
|
||||
assert_eq!(tabs(&u), json!([]));
|
||||
|
||||
Reference in New Issue
Block a user