forked from 1b-agent/opencadstudio-upstream
test(commands): alias R routes like REDRAW
This commit is contained in:
1 parent
d2e18ead38
commit
319710f36b
1 file changed
+15
@@ -1280,6 +1280,21 @@ mod tests {
|
||||
assert_eq!(app.tabs[i].scene.block_epoch, block_before, "REDRAW must not regen blocks");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn aliases_route_like_full_verbs() {
|
||||
let mut full = fresh_app();
|
||||
let mut short = fresh_app();
|
||||
let _ = full.run_command_line("REDRAW");
|
||||
let _ = short.run_command_line("R");
|
||||
let i = full.active_tab;
|
||||
assert!(short.tabs[i].scene.refresh_pending_any(), "'R' must trigger REDRAW");
|
||||
assert_eq!(
|
||||
short.tabs[i].scene.refresh_pending_any(),
|
||||
full.tabs[i].scene.refresh_pending_any(),
|
||||
"'R' and 'REDRAW' must leave the same refresh state"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn redrawall_marks_all_tiles() {
|
||||
let mut app = fresh_app();
|
||||
|
||||
Reference in new issue
Block a user