fn main() -> Result<(), burokku::BurokkuError> { let mut script = include_str!("./app.js").to_owned(); if std::env::var_os("BUROKKU_SMOKE").is_some() { script.push_str( "\nsetTimeout(() => {\n\ const window = app.firstChild;\n\ if (window !== null) app.removeChild(window);\n\ }, 1500);", ); } burokku::Burokku::builder() .script(script) .extension(|registry: &mut burokku::extension::Registry<'_>| { registry.font( include_bytes!("../../../crates/core/testdata/fonts/NotoSans-Regular.ttf") .as_slice(), ); Ok(()) }) .run() }