TypeScript/tests/cases/fourslash/commentsMultiModuleMultiFile.ts

40 lines
1.1 KiB
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @Filename: commentsMultiModuleMultiFile_0.ts
2015-04-27 01:12:48 +02:00
/////** this is multi declare namespace*/
////namespace mult/*3*/iM {
//// /** class b*/
//// export class b {
//// }
////}
2015-04-27 01:12:48 +02:00
/////** thi is multi namespace 2*/
////namespace mu/*2*/ltiM {
//// /** class c comment*/
//// export class c {
//// }
////}
////
////new /*1*/mu/*4*/ltiM.b();
////new mu/*5*/ltiM.c();
// @Filename: commentsMultiModuleMultiFile_1.ts
2015-04-27 01:12:48 +02:00
/////** this is multi namespace 3 comment*/
////namespace mu/*6*/ltiM {
//// /** class d comment*/
//// export class d {
//// }
////}
////new /*7*/mu/*8*/ltiM.d();
2016-09-09 18:02:55 +02:00
const comment = "this is multi declare namespace\nthi is multi namespace 2\nthis is multi namespace 3 comment";
2016-09-09 18:02:55 +02:00
goTo.marker('1');
verify.completionListContains("multiM", "namespace multiM", comment);
2016-09-09 18:02:55 +02:00
for (const marker of ["2", "3", "4", "5", "6", "8"]) {
verify.quickInfoAt(marker, "namespace multiM", comment);
}
goTo.marker('7');
2016-09-09 18:02:55 +02:00
verify.completionListContains("multiM", "namespace multiM", comment);