github.com/gopherjs/gopherjs@v1.19.0-beta1.0.20240506212314-27071a8796e4/compiler/natives/src/syscall/js/js_test.go (about) 1 //go:build js 2 // +build js 3 4 package js_test 5 6 import "testing" 7 8 func TestIntConversion(t *testing.T) { 9 // Same as upstream, but only test cases appropriate for a 32-bit environment. 10 testIntConversion(t, 0) 11 testIntConversion(t, 1) 12 testIntConversion(t, -1) 13 testIntConversion(t, 1<<20) 14 testIntConversion(t, -1<<20) 15 } 16 17 func TestGarbageCollection(t *testing.T) { 18 t.Skip("GC is not supported by GopherJS") 19 }