M6: a field without /TU shows no tooltip of its own (#3854)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3niW7kVeT8mi7TpWc8eAJ
This commit is contained in:
mtlcl410
2026-10-22 03:37:01 +08:00
co-authored by Claude Opus 5.5
parent 33150203a8
commit 81c08be3ea
+3
View File
@@ -69,6 +69,9 @@ fn hovering_a_field_shows_its_tooltip() {
assert!(h.query_by_label("Your name").is_some(), "the name field's /TU shows on hover");
rest_on_field(&mut h, "city");
assert!(h.query_by_label("Your name").is_none(), "another field doesn't keep the tooltip");
// Nor shows one of its own: none has been shown since the pointer left `name` (well past the
// tooltip delay), so this isn't only the old label going away.
assert!(egui::Tooltip::seconds_since_last_tooltip(&h.ctx) > 0.3, "a field without /TU shows no tooltip");
}
/// Give the `city` field these properties, as the Properties dialog would.