LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Issue #3412: accessibility audit allows missing glyphs without craft-fonts
Antonio Sokicea2e4bf62990
diff --git a/crates/ui-egui/tests/it/accessibility.rs b/crates/ui-egui/tests/it/accessibility.rsindex 04d64f3e5..30196048b 100644--- a/crates/ui-egui/tests/it/accessibility.rs+++ b/crates/ui-egui/tests/it/accessibility.rs@@ -14,7 +14,14 @@ fn harness(view: ViewMode, right: RightPanel) -> Harness<'static, LightcraftApp>app.ui.left_panel = true;app.ui.view = view;app.ui.right = right;- let mut h = Harness::builder().with_size(vec2(1500.0, 950.0)).build_ui_state(+ let mut builder = Harness::builder().with_size(vec2(1500.0, 950.0));+ // text such as "▸" in the Reference view's hint has its glyph only in the craft-fonts faces (releases+ // always have them): without them it is drawn as a box, which this audit of names doesn't need+ if lightcraft_engine::CRAFT_FONTS.is_empty() {+ lightcraft_testkit::skip!(Fonts, "built without CRAFT_FONTS_DIR: glyphs only craft-fonts has are drawn as boxes, not checked");+ builder = builder.allow_missing_glyphs();+ }+ let mut h = builder.build_ui_state(|ui, app: &mut LightcraftApp| {app.logic(&ui.ctx().clone());app.ui(ui);