mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Factored out hidden path test
This commit is contained in:
parent
bfb2185c4f
commit
629e126718
28
tests/cases/fourslash/tripleSlashRefPathHiddenFile.ts
Normal file
28
tests/cases/fourslash/tripleSlashRefPathHiddenFile.ts
Normal file
@ -0,0 +1,28 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Exercises completions for hidden files (ie: those beginning with '.')
|
||||
|
||||
// @Filename: f1.ts
|
||||
//// /*f1*/
|
||||
// @Filename: f2.ts
|
||||
//// /*f2*/
|
||||
// @Filename: .hidden.ts
|
||||
//// /*hidden*/
|
||||
|
||||
// @Filename: test.ts
|
||||
//// /// <reference path="/*0*/
|
||||
//// /// <reference path="./*1*/
|
||||
//// /// <reference path=".//*2*/
|
||||
//// /// <reference path=".\/*3*/
|
||||
|
||||
for(let m of ["0", "2", "3"]) {
|
||||
goTo.marker(m);
|
||||
verify.completionListContains("f1.ts");
|
||||
verify.completionListContains("f2.ts");
|
||||
verify.completionListContains(".hidden.ts");
|
||||
verify.not.completionListItemsCountIsGreaterThan(3);
|
||||
}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains(".hidden.ts");
|
||||
verify.not.completionListItemsCountIsGreaterThan(1);
|
||||
@ -15,8 +15,6 @@
|
||||
//// /*h1*/
|
||||
// @Filename: dir1/dir2/h2.ts
|
||||
//// /*h2*/
|
||||
// @Filename: dir1/dir2/.hidden.ts
|
||||
//// /*hidden*/
|
||||
// @Filename: dir1/dir2/dir3/i1.ts
|
||||
//// /*i1*/
|
||||
// @Filename: dir1/dir2/dir3/i2.ts
|
||||
@ -65,14 +63,12 @@ function workingDirCompletions() {
|
||||
goTo.marker(m);
|
||||
verify.completionListContains("h1.ts");
|
||||
verify.completionListContains("h2.ts");
|
||||
verify.completionListContains(".hidden.ts");
|
||||
verify.completionListContains("dir3");
|
||||
verify.not.completionListItemsCountIsGreaterThan(4);
|
||||
verify.not.completionListItemsCountIsGreaterThan(3);
|
||||
}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains(".hidden.ts");
|
||||
verify.not.completionListItemsCountIsGreaterThan(1);
|
||||
verify.not.completionListItemsCountIsGreaterThan(0);
|
||||
|
||||
goTo.marker("2");
|
||||
verify.not.completionListItemsCountIsGreaterThan(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user