notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 310a835b27107fa1ab8209a7e7154507e4d888c5
parent d617b688f1a0f7e8874f71916ad2846b7b304bef
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 21 Apr 2025 13:12:29 -0700

docs: remove test hallucination

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_ui/docs/README.md | 19-------------------
1 file changed, 0 insertions(+), 19 deletions(-)

diff --git 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