Skip to content

Commit

Permalink
Add test for issue fixed in PR #94
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 24, 2019
1 parent 1a5e052 commit 2ebefe7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions driver/gl/window_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package gl

import (
"testing"

_ "fyne.io/fyne/test"

"github.com/stretchr/testify/assert"
)

func TestWindow_SetTitle(t *testing.T) {
d := NewGLDriver()
w := d.CreateWindow("Test")

title := "My title"
w.SetTitle(title)

assert.Equal(t, title, w.Title())
}

0 comments on commit 2ebefe7

Please sign in to comment.