makepad/widgets/tests/support/app_style.rs
Admin 53e0e85b92 draw and widgets: Slug text everywhere, no blank glyphs, slimmer widgets
All outline text draws with Slug curves on every platform (SDF/MSDF stays
selectable per size); a frame never presents a blank glyph and retained draw
lists keep theirs. One coverage model for vector feathering, widget families
split out of the core crate, fewer steady-state allocations, video keeps its
aspect (Contain/Cover), render and SSAO pass unification.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 12:26:21 +02:00

21 lines
799 B
Rust

// Included by application unit tests to validate the real registration path,
// including app-local Splash modules and aliases, through every sheet in the catalogue.
use super::*;
#[test]
fn application_styles_reload_without_script_errors() {
use makepad_widgets::desktop_style::{catalogue, install, StyleSheet};
let mut cx = Cx::new(Box::new(|_, _| {}));
cx.init_cx_os();
cx.with_vm(|vm| {
makepad_widgets::makepad_platform::script::script_mod(vm);
App::script_mod(vm);
for entry in catalogue() {
install(vm, StyleSheet::load(entry));
vm.capture_errors();
vm.with_reload(App::script_mod);
let errors = vm.take_errors();
assert!(errors.is_empty(), "{}: {errors:?}", entry.id);
}
});
}