graphicscommand: Skip the shader test on browsers

Updates #482
This commit is contained in:
Hajime Hoshi 2020-05-23 22:40:30 +09:00
parent 521f9dcac5
commit 3306a957ba

View File

@ -23,6 +23,7 @@ import (
. "github.com/hajimehoshi/ebiten/internal/graphicscommand"
"github.com/hajimehoshi/ebiten/internal/shaderir"
t "github.com/hajimehoshi/ebiten/internal/testing"
"github.com/hajimehoshi/ebiten/internal/web"
)
func TestMain(m *testing.M) {
@ -84,6 +85,9 @@ func TestShader(t *testing.T) {
if !IsGL() {
t.Skip("shader is not implemented on non-GL environment")
}
if web.IsBrowser() {
t.Skip("shader is not implemented on browsers")
}
const w, h = 16, 16
clr := NewImage(w, h)