Skip to content

Commit

Permalink
Add a Since: line
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed May 23, 2024
1 parent 089f20b commit 80489a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ func ApplyTheme(t *testing.T, theme fyne.Theme) {
// TempWidgetRenderer allows test scripts to gain access to the current renderer for a widget.
// This can be used for verifying correctness of rendered components for a widget in unit tests.
// The widget renderer is automatically destroyed when the test ends.
//
// Since: 2.5
func TempWidgetRenderer(t *testing.T, wid fyne.Widget) fyne.WidgetRenderer {
t.Cleanup(func() { cache.DestroyRenderer(wid) })
return cache.Renderer(wid)
Expand Down

0 comments on commit 80489a2

Please sign in to comment.