G5: assert default 9-slice on every UI Frames symbol

Keep the library test aligned with SymbolNineSlice::default() for Panel, Button and Bar.
This commit is contained in:
Fabio William Conceição
2026-11-09 16:40:13 +00:00
parent e5ef855903
commit a668f44780
+1 -2
View File
@@ -117,9 +117,8 @@ fn ui_frames_symbols_carry_default_nine_slice_when_added() {
}
let d = doc(&s);
for name in &names {
assert!(d.symbol_nine_slice(name).is_some(), "{name} should have 9-slice guides");
assert_eq!(d.symbol_nine_slice(name), Some(vectorcraft_doc::SymbolNineSlice::default()), "{name} should have default 9-slice guides");
}
assert_eq!(d.symbol_nine_slice("Panel"), Some(vectorcraft_doc::SymbolNineSlice::default()));
assert!(matches!(
d.node(NodeId(placed[0])).map(|n| &n.kind),
Some(NodeKind::SymbolInstance { symbol, .. }) if symbol == "Panel"