Test: the check strokes and the circle fills in the field's colour (#4261)

This commit is contained in:
Marco Arnulfo
2026-10-23 20:06:20 +02:00
parent 8b9d5017fe
commit 6062535e0e
+3 -1
View File
@@ -1759,7 +1759,9 @@ fn check_mark_takes_the_fields_text_colour() {
for name in [&check, &radio] {
set_props(&mut doc, name, &blue).unwrap();
let ap = on_ap(&reopen(&doc), name);
assert!(ap.contains("0 0 1 RG") || ap.contains("0 0 1 rg"), "{name}: the mark is blue: {ap}");
// The check strokes, the radio's default circle fills.
let op = if name == &check { "0 0 1 RG" } else { "0 0 1 rg" };
assert!(ap.contains(op), "{name}: the mark is blue: {ap}");
assert!(!ap.contains("0 G\n") && !ap.contains("0 g\n"), "{name}: no black left: {ap}");
}
// A style change redraws too, and keeps the colour.