From 6062535e0eea73e2e9f8cf22661f7b706590e3bd Mon Sep 17 00:00:00 2001 From: Marco Arnulfo Date: Fri, 23 Oct 2026 20:06:20 +0200 Subject: [PATCH] Test: the check strokes and the circle fills in the field's colour (#4261) --- crates/forms/src/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/forms/src/tests.rs b/crates/forms/src/tests.rs index 38076165a5..b1c66f2cbe 100644 --- a/crates/forms/src/tests.rs +++ b/crates/forms/src/tests.rs @@ -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.