mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: skip TestNonSeekableSource on browsers
This commit is contained in:
parent
0963b8a7e3
commit
bf90217e68
@ -124,6 +124,10 @@ func (emptySource) Read(buf []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestNonSeekableSource(t *testing.T) {
|
func TestNonSeekableSource(t *testing.T) {
|
||||||
|
if runtime.GOOS == "js" {
|
||||||
|
t.Skip("infinite steams in tests cannot be treated well on browsers")
|
||||||
|
}
|
||||||
|
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
|
|
||||||
@ -134,8 +138,6 @@ func TestNonSeekableSource(t *testing.T) {
|
|||||||
|
|
||||||
p.Play()
|
p.Play()
|
||||||
p.Pause()
|
p.Pause()
|
||||||
p = nil
|
|
||||||
runtime.GC()
|
|
||||||
|
|
||||||
// 200[ms] should be enough all the bytes are consumed.
|
// 200[ms] should be enough all the bytes are consumed.
|
||||||
// TODO: This is a dirty hack. Would it be possible to use virtual time?
|
// TODO: This is a dirty hack. Would it be possible to use virtual time?
|
||||||
|
Loading…
Reference in New Issue
Block a user