mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 01:41:39 +02:00
✨ Serialize solid fills as bytes (wasm)
This commit is contained in:
parent
81f18ad7f4
commit
093fa18839
7 changed files with 73 additions and 24 deletions
|
@ -860,8 +860,11 @@ mod tests {
|
|||
let mut shape = any_shape();
|
||||
assert_eq!(shape.fills.len(), 0);
|
||||
|
||||
shape.add_fill(Fill::Solid(Color::TRANSPARENT));
|
||||
assert_eq!(shape.fills.get(0), Some(&Fill::Solid(Color::TRANSPARENT)))
|
||||
shape.add_fill(Fill::Solid(SolidColor(Color::TRANSPARENT)));
|
||||
assert_eq!(
|
||||
shape.fills.get(0),
|
||||
Some(&Fill::Solid(SolidColor(Color::TRANSPARENT)))
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue