mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 12:57:11 -06:00
Remove useless inserts that used to be required to trigger checks
This commit is contained in:
parent
0485bb6b56
commit
d47b3e22e5
@ -23,9 +23,6 @@
|
||||
////d./*1*/
|
||||
////D./*2*/
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains('foo');
|
||||
verify.completionListContains('foo2');
|
||||
|
||||
@ -28,9 +28,6 @@
|
||||
////d./*1*/
|
||||
////D./*2*/
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains('foo');
|
||||
verify.completionListContains('foo2');
|
||||
|
||||
@ -14,10 +14,6 @@
|
||||
//// }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains('f');
|
||||
verify.completionListContains('foo');
|
||||
|
||||
@ -9,9 +9,6 @@
|
||||
//// }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker();
|
||||
verify.quickInfoIs('var M.C.C: typeof M.C');
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
@ -58,9 +58,6 @@
|
||||
////}
|
||||
////var myVar = new m.m2.c/*33*/1();
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs("class c2", "This is class c2 without constuctor");
|
||||
|
||||
|
||||
@ -31,9 +31,6 @@
|
||||
/////*10*/extMod./*11*/m1./*12*/fooExp/*13q*/ort(/*13*/);
|
||||
////var new/*14*/Var = new extMod.m1.m2./*15*/c();
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.file("commentsExternalModules_file0.ts");
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs("namespace m1", "Namespace comment");
|
||||
|
||||
@ -26,8 +26,6 @@
|
||||
////}
|
||||
////new /*7*/mu/*8*/ltiM.d();
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
goTo.marker('1');
|
||||
verify.completionListContains("multiM", "namespace multiM", "this is multi declare namespace\nthi is multi namespace 2\nthis is multi namespace 3 comment");
|
||||
|
||||
|
||||
@ -16,9 +16,6 @@
|
||||
////new /*1*/mu/*4*/ltiM.b();
|
||||
////new mu/*5*/ltiM.c();
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains("multiM", "namespace multiM", "this is multi declare namespace\nthi is multi namespace 2");
|
||||
|
||||
|
||||
@ -2,9 +2,6 @@
|
||||
|
||||
////var a;
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.eof();
|
||||
verify.completionListContains("a");
|
||||
|
||||
|
||||
@ -12,9 +12,6 @@
|
||||
////var f = new Foo();
|
||||
////f/*c3*/;
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker("c1");
|
||||
edit.insert(".");
|
||||
verify.memberListContains("x");
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
////Foo./**/;
|
||||
/////*1*/var bar;
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker();
|
||||
verify.memberListContains("fun");
|
||||
verify.not.errorExistsAfterMarker("1");
|
||||
@ -4,9 +4,6 @@
|
||||
////var baz = Foo/**/;
|
||||
/////*1*/baz.concat("y");
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker();
|
||||
edit.insert(".b");
|
||||
verify.not.errorExistsAfterMarker("1");
|
||||
|
||||
@ -194,9 +194,6 @@
|
||||
//// }
|
||||
////};
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs("(property) C1T5.foo: (i: number, s: string) => number");
|
||||
goTo.marker('2');
|
||||
|
||||
@ -11,9 +11,6 @@
|
||||
////var b: B<number>;
|
||||
////var /**/x = b.foo2().foo(5).foo(); // 'x' is of type 'void'
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker();
|
||||
verify.quickInfoIs('var x: void');
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
|
||||
@ -7,9 +7,6 @@
|
||||
//// }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker();
|
||||
verify.quickInfoIs('var M.C.C: typeof M.C');
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
@ -50,9 +50,6 @@
|
||||
|
||||
////var /*23*/r8a = _.map</*error1*/B/*error2*/, string>(c5, (/*8*/x) => { return x.foo() });
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs('(parameter) x: number');
|
||||
goTo.marker('2');
|
||||
|
||||
@ -56,9 +56,6 @@
|
||||
////
|
||||
////var /*23*/r8a = _.map<number, /*error1*/B/*error2*/, string>(c5, (/*8a*/x,/*8b*/y) => { return y.foo() });
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('2a');
|
||||
verify.quickInfoIs('(parameter) x: Collection<number, number>');
|
||||
goTo.marker('2b');
|
||||
|
||||
@ -11,9 +11,6 @@
|
||||
//// constructor() { }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('staticFunctionOverload');
|
||||
goTo.definition();
|
||||
verify.caretAtMarker('staticFunctionOverloadDefinition');
|
||||
|
||||
@ -16,9 +16,6 @@
|
||||
//// var x: /*Part2Use*/IA;
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('Part2Use');
|
||||
goTo.definition();
|
||||
verify.caretAtMarker('Part1Definition');
|
||||
|
||||
@ -15,9 +15,6 @@
|
||||
////var /*3*/z = new /*2*/Foo();
|
||||
////var /*5*/r2 = Foo./*4*/x;
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs("import Foo = require('./mergedDeclarationsWithExportAssignment1_file0')");
|
||||
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
////}
|
||||
////var x = <{ (fn: (va/*2*/riable2: string) => void, a: string): void; }> () => { };
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker("1");
|
||||
verify.quickInfoIs("(parameter) variable1: string", undefined);
|
||||
|
||||
|
||||
@ -16,9 +16,6 @@
|
||||
////}
|
||||
////var x = new /*2*/B(/*1*/
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker("1");
|
||||
verify.currentSignatureHelpIs("B(a: Foo<I>, b: number): B");
|
||||
edit.insert("null,");
|
||||
|
||||
@ -17,9 +17,6 @@
|
||||
//// }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('1');
|
||||
verify.signatureHelpPresent();
|
||||
verify.currentSignatureHelpIs('B(): B');
|
||||
|
||||
@ -10,9 +10,6 @@
|
||||
//// }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker('superCall');
|
||||
verify.signatureHelpCountIs(1);
|
||||
verify.currentSignatureHelpIs("SuperCallBase(b: boolean): SuperCallBase");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user