forked from 1b-agent/opencadstudio-upstream
Simplify Modify ribbon extensions
This commit is contained in:
1 parent
13600996d3
commit
5f3edf45ef
21 files changed
+248
-117
No files matched your search
@@ -1600,6 +1600,17 @@ mod tests {
|
||||
assert!(!is_active_tool("BLOCKPALETTE", &None, &off));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn escape_returns_from_an_extension_submenu_then_closes_the_panel() {
|
||||
let mut ribbon = Ribbon::default();
|
||||
ribbon.open_dropdown = Some("DRAWORDER_FRONT".to_string());
|
||||
|
||||
assert!(ribbon.escape_extension());
|
||||
assert_eq!(ribbon.open_dropdown.as_deref(), Some("modify_extension"));
|
||||
assert!(ribbon.escape_extension());
|
||||
assert_eq!(ribbon.open_dropdown, None);
|
||||
}
|
||||
|
||||
/// Reproducible element-construction benchmark for the ribbon view. Run with:
|
||||
/// `cargo test --lib --release -- --ignored --nocapture bench_ribbon_view_construction`
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user