Count exported crop marks as lines.

This commit is contained in:
Vikram Bhaskaran committed 2026-11-04 19:00:38 +11:00
1 parent 6ca98ab270
commit 38cb72e3eb
1 file changed
+1 -1
+1 -1
View File
@@ -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);