draw2d/samples_test.go

61 lines
1.5 KiB
Go
Raw Normal View History

// See also test_test.go
package draw2d_test
import (
"testing"
2018-11-16 11:21:14 +00:00
"git.fromouter.space/crunchy-rocks/draw2d"
"git.fromouter.space/crunchy-rocks/draw2d/samples/android"
"git.fromouter.space/crunchy-rocks/draw2d/samples/frameimage"
"git.fromouter.space/crunchy-rocks/draw2d/samples/geometry"
"git.fromouter.space/crunchy-rocks/draw2d/samples/gopher"
"git.fromouter.space/crunchy-rocks/draw2d/samples/gopher2"
"git.fromouter.space/crunchy-rocks/draw2d/samples/helloworld"
"git.fromouter.space/crunchy-rocks/draw2d/samples/line"
"git.fromouter.space/crunchy-rocks/draw2d/samples/linecapjoin"
"git.fromouter.space/crunchy-rocks/draw2d/samples/postscript"
)
func TestSampleAndroid(t *testing.T) {
test(t, android.Main)
}
2015-07-11 16:44:36 +00:00
func TestSampleGeometry(t *testing.T) {
// Set the global folder for searching fonts
// The pdf backend needs for every ttf file its corresponding
// json/.z file which is generated by gofpdf/makefont.
draw2d.SetFontFolder("resource/font")
test(t, geometry.Main)
}
func TestSampleGopher(t *testing.T) {
test(t, gopher.Main)
}
2015-07-11 16:44:36 +00:00
func TestSampleGopher2(t *testing.T) {
test(t, gopher2.Main)
}
func TestSampleHelloWorld(t *testing.T) {
// Set the global folder for searching fonts
2015-07-10 00:07:18 +00:00
draw2d.SetFontFolder("resource/font")
test(t, helloworld.Main)
}
func TestSampleFrameImage(t *testing.T) {
test(t, frameimage.Main)
}
func TestSampleLine(t *testing.T) {
test(t, line.Main)
}
2015-07-01 12:44:51 +00:00
2015-07-10 00:07:18 +00:00
func TestSampleLineCapJoin(t *testing.T) {
2015-07-01 12:44:51 +00:00
test(t, linecapjoin.Main)
}
2015-07-01 13:15:37 +00:00
func TestSamplePostscript(t *testing.T) {
test(t, postscript.Main)
}