Skip to content

Commit

Permalink
Update internal/driver/glfw/canvas_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tilo Prütz <tilo@pruetz.net>
  • Loading branch information
andydotxyz and toaster committed Feb 15, 2021
1 parent ea49789 commit 30d6fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/driver/glfw/canvas_test.go
Expand Up @@ -216,12 +216,12 @@ func TestGlCanvas_Focus_SetContent(t *testing.T) {
w := createWindow("Test")
w.SetPadded(false)
e := widget.NewEntry()
w.SetContent(e)
w.SetContent(container.NewHBox(e))
c := w.Canvas().(*glCanvas)
c.Focus(e)
assert.Equal(t, e, c.Focused())

w.SetContent(e)
w.SetContent(container.NewVBox(e))
assert.Equal(t, e, c.Focused())
}

Expand Down

0 comments on commit 30d6fc0

Please sign in to comment.