Skip to content

Commit

Permalink
Fix format, updated my git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Feb 27, 2019
1 parent 64fc672 commit 0570f9b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions driver/gl/gl_test.go
Expand Up @@ -3,8 +3,8 @@
package gl

import (
"testing"
"runtime"
"testing"

"fyne.io/fyne"
"fyne.io/fyne/canvas"
Expand All @@ -16,24 +16,24 @@ func init() {
}

func TestDrawImage_Ratio(t *testing.T) {
// d := NewGLDriver()
// win := d.CreateWindow("Test")
// c := win.Canvas().(*glCanvas)
// d := NewGLDriver()
// win := d.CreateWindow("Test")
// c := win.Canvas().(*glCanvas)

img := canvas.NewImageFromResource(theme.FyneLogo())
img.Resize(fyne.NewSize(10, 10))
// c.newGlImageTexture(img)
// assert.Equal(t, float32(1.0), c.aspects[img])
// c.newGlImageTexture(img)
// assert.Equal(t, float32(1.0), c.aspects[img])
}

func TestDrawImage_Ratio2(t *testing.T) {
// d := NewGLDriver()
// win := d.CreateWindow("Test")
// c := win.Canvas().(*glCanvas)
// d := NewGLDriver()
// win := d.CreateWindow("Test")
// c := win.Canvas().(*glCanvas)

// make sure we haven't used the visual ratio
img := canvas.NewImageFromResource(theme.FyneLogo())
img.Resize(fyne.NewSize(20, 10))
// c.newGlImageTexture(img)
// assert.Equal(t, float32(1.0), c.aspects[img])
// c.newGlImageTexture(img)
// assert.Equal(t, float32(1.0), c.aspects[img])
}

0 comments on commit 0570f9b

Please sign in to comment.