mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 11:11:30 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user