mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
shader: Bug fix: Skip tests on browsers
With wasmbrowsertest, file system is not available.
This commit is contained in:
parent
91fb8e92d8
commit
d0027ebc5f
@ -19,6 +19,7 @@ import (
|
||||
"go/token"
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@ -26,6 +27,10 @@ import (
|
||||
)
|
||||
|
||||
func TestCompile(t *testing.T) {
|
||||
if runtime.GOOS == "js" {
|
||||
t.Skip("file open might not be implemented in this environment")
|
||||
}
|
||||
|
||||
files, err := ioutil.ReadDir("testdata")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
Loading…
Reference in New Issue
Block a user