mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 11:16:12 +02:00
Merge pull request #6379 from penpot/ladybenko-10753-fills-serialization
🎉 Serialize as bytes all fill kinds
This commit is contained in:
commit
46709fb02e
11 changed files with 358 additions and 329 deletions
|
@ -914,8 +914,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