mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add new GotoDefinition tests
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////var n: /*number*/number;
|
||||
////var s: /*string*/string;
|
||||
////var b: /*boolean*/boolean;
|
||||
////var v: /*void*/void;
|
||||
|
||||
test.markers().forEach((m, i, a) => {
|
||||
goTo.position(m.position, m.fileName);
|
||||
verify.not.definitionLocationExists();
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////var u = /*undefined*/undefined;
|
||||
////var n = /*null*/null;
|
||||
////var a = function() { return /*arguments*/arguments; };
|
||||
|
||||
test.markers().forEach((m, i, a) => {
|
||||
goTo.position(m.position, m.fileName);
|
||||
verify.not.definitionLocationExists();
|
||||
});
|
||||
@@ -1,6 +1,11 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////some/*undefined*/Variable;
|
||||
////some/*undefinedValue*/Variable;
|
||||
////var a: some/*undefinedType*/Type;
|
||||
////var x = {}; x.some/*undefinedProperty*/Property;
|
||||
////var a: any; a.some/*unkownProperty*/Property;
|
||||
|
||||
goTo.marker("undefined");
|
||||
verify.not.definitionLocationExists();
|
||||
test.markers().forEach((m, i, a) => {
|
||||
goTo.position(m.position, m.fileName);
|
||||
verify.not.definitionLocationExists();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user