mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 10:53:35 +01:00
Count exported crop marks as lines.
This commit is contained in:
1 file changed
+1
-1
@@ -160,7 +160,7 @@ fn crop_marks_effect_follows_the_object() {
|
||||
// SVG export and Expand Appearance draw the marks as shapes.
|
||||
let svg = vectorcraft_svg::export(&s.doc().unwrap().doc, &Default::default());
|
||||
assert_eq!(vectorcraft_testkit::svg_shapes(&svg), 9, "{svg}");
|
||||
assert_eq!(svg.matches("<path").count(), 8, "eight trim marks: {svg}");
|
||||
assert_eq!(svg.matches("<line").count(), 8, "eight trim marks: {svg}");
|
||||
assert_eq!(svg.matches("<rect").count(), 1, "the marked object: {svg}");
|
||||
run(&mut s, "effect.expandAppearance", json!({}));
|
||||
let n = node(&s, a);
|
||||
|
||||
Reference in new issue
Block a user