# Add breakpoint hover visual tests with VisualTestPlatform \(\#46404\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0e97c18fd68039d85fa99aa85de4c5172f11e707)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0e97c18fd68039d85fa99aa85de4c5172f11e707

Requested commit: 0e97c18fd68039d85fa99aa85de4c5172f11e707

Commit: 0e97c18fd68039d85fa99aa85de4c5172f11e707

Tree: 89ca81a42292898576bf54b3e8aaa17cf1092854

Author: Richard Feldman

Committer: GitHub

## Message

```
Add breakpoint hover visual tests with VisualTestPlatform (#46404)

Implements visual tests for breakpoint hover states in the editor gutter
with three states:
1. **No hover** - just line numbers
2. **Hover with indicator** - blue circle appears next to the line
3. **Hover with tooltip** - shows 'Set breakpoint' with F9 keybinding

- Added `VisualTestPlatform` that combines real Mac rendering with
controllable `TestDispatcher` for deterministic task scheduling and time
control
- Added `VisualTestAppContext::with_asset_source()` to enable SVG icon
rendering in visual tests (uses real Assets instead of empty source)
- Added F9 keybinding for ToggleBreakpoint so tooltip shows the
keybinding
- Removed debug `eprintln!` statements from editor, element, svg, and
window

The `VisualTestPlatform` enables `advance_clock()` which is essential
for testing time-based behaviors like tooltip delays. Without
deterministic time control, tests for hover states and tooltips would be
flaky.

Release Notes:

- N/A
```

## Parents

- [144ff825e26e2090c4bb15ab4ff7f5174a9fe6a2](https://git.cafe/gitcafe/zed/commit/144ff825e26e2090c4bb15ab4ff7f5174a9fe6a2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0e97c18fd68039d85fa99aa85de4c5172f11e707?format=markdown)
