From 310a835b27107fa1ab8209a7e7154507e4d888c5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 21 Apr 2025 13:12:29 -0700 Subject: [PATCH] docs: remove test hallucination Signed-off-by: William Casarin --- crates/notedeck_ui/docs/README.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/crates/notedeck_ui/docs/README.md b/crates/notedeck_ui/docs/README.md index da1710a8..040f83a2 100644 --- a/crates/notedeck_ui/docs/README.md +++ b/crates/notedeck_ui/docs/README.md @@ -160,25 +160,6 @@ if ui.visuals().dark_mode { } ``` -## Testing Components - -To test UI components, use the EGUI test infrastructure: - -```rust -#[test] -fn test_profile_pic() { - let ctx = egui::Context::default(); - let mut cache = Images::new(); - - ctx.run(|ctx| { - egui::CentralPanel::default().show(ctx, |ui| { - let response = ui.add(ProfilePic::new(&mut cache, "test_url")); - assert!(response.clicked() == false); - }); - }); -} -``` - ## Debugging Tips 1. **EGUI Inspector**: Use `ctx.debug_painter()` to visualize layout bounds