22 lines
590 B
Go
22 lines
590 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestGoToDefinitionBuiltInValues(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `var u = /*undefined*/undefined;
|
|
var n = /*null*/null;
|
|
var a = function() { return /*arguments*/arguments; };
|
|
var t = /*true*/true;
|
|
var f = /*false*/false;`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyBaselineGoToDefinition(t, f.MarkerNames()...)
|
|
}
|