mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
17 lines
309 B
Rust
17 lines
309 B
Rust
use egui_kittest::Harness;
|
|
|
|
#[test]
|
|
fn test_shrink() {
|
|
let mut harness = Harness::new_ui(|ui| {
|
|
ui.label("Hello, world!");
|
|
ui.separator();
|
|
ui.label("This is a test");
|
|
});
|
|
|
|
harness.fit_contents();
|
|
|
|
harness.run_with_eframe();
|
|
|
|
harness.wgpu_snapshot("test_shrink");
|
|
}
|