docs: remove test hallucination

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-04-21 13:12:29 -07:00
parent d617b688f1
commit 310a835b27

View File

@@ -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