mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Rename Tests
This commit is contained in:
parent
49e0de991d
commit
2195f17666
@ -1,51 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Should give completions for relative references to ts files when allowJs is false
|
||||
|
||||
// @Filename: test0.ts
|
||||
//// /// <reference path="/*0*/
|
||||
//// /// <reference path="./*1*/
|
||||
//// /// <reference path="../*2*/
|
||||
//// /// <reference path=".//*3*/
|
||||
//// /// <reference path="./f/*4*/" />
|
||||
//// /// <reference path="./parentTest//*5*/
|
||||
|
||||
// @Filename: parentTest/sub/test1.ts
|
||||
//// /// <reference path="../g/*6*/
|
||||
|
||||
// @Filename: f1.ts
|
||||
//// /*f1*/
|
||||
// @Filename: f1.js
|
||||
//// /*f1j*/
|
||||
// @Filename: f1.d.ts
|
||||
//// /*f1d*/
|
||||
// @Filename: f2.tsx
|
||||
//// /f2*/
|
||||
// @Filename: f3.js
|
||||
//// /*f3*/
|
||||
// @Filename: f4.jsx
|
||||
//// /*f4*/
|
||||
// @Filename: e1.ts
|
||||
//// /*e1*/
|
||||
// @Filename: parentTest/g1.ts
|
||||
//// /*parentg1*/
|
||||
|
||||
for (let i = 0; i < 5; i++) {
|
||||
goTo.marker("" + i);
|
||||
verify.completionListContains("f1.ts");
|
||||
verify.completionListContains("f1.d.ts");
|
||||
verify.completionListContains("f2.tsx");
|
||||
verify.completionListContains("e1.ts");
|
||||
verify.completionListContains("parentTest");
|
||||
verify.not.completionListItemsCountIsGreaterThan(5);
|
||||
}
|
||||
|
||||
goTo.marker("5");
|
||||
verify.completionListContains("g1.ts");
|
||||
verify.completionListContains("sub");
|
||||
verify.not.completionListItemsCountIsGreaterThan(2);
|
||||
|
||||
goTo.marker("6");
|
||||
verify.completionListContains("g1.ts");
|
||||
verify.completionListContains("sub");
|
||||
verify.not.completionListItemsCountIsGreaterThan(2);
|
||||
@ -0,0 +1,37 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Exercises relative path completions going up and down 2 directories
|
||||
// and the use of forward- and back-slashes and combinations thereof.
|
||||
|
||||
// @Filename: f1.ts
|
||||
//// /*f1*/
|
||||
// @Filename: f2.ts
|
||||
//// /*f2*/
|
||||
// @Filename: d/g.ts
|
||||
//// /*g*/
|
||||
|
||||
// @Filename: test.ts
|
||||
//// /// <reference path="f/*0*/
|
||||
//// /// <reference path="./f/*1*/
|
||||
|
||||
//// /// <reference path="f1/*2*/
|
||||
//// /// <reference path="f1./*3*/
|
||||
//// /// <reference path="f1.t/*4*/
|
||||
//// /// <reference path="f1.ts/*5*/
|
||||
//// /// <reference path="./f1/*6*/
|
||||
//// /// <reference path="./f1./*7*/
|
||||
//// /// <reference path="./f1.t/*8*/
|
||||
//// /// <reference path="./f1.ts/*9*/
|
||||
|
||||
for (let m of ["0", "1"]) {
|
||||
goTo.marker(m);
|
||||
verify.completionListContains("f1.ts");
|
||||
verify.completionListContains("f2.ts");
|
||||
verify.not.completionListItemsCountIsGreaterThan(2);
|
||||
}
|
||||
|
||||
for (let m = 2; m < 10; ++m) {
|
||||
goTo.marker("" + m);
|
||||
verify.completionListContains("f1.ts");
|
||||
verify.not.completionListItemsCountIsGreaterThan(1);
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Exercises relative path completions going up and down 2 directories
|
||||
// and the use of forward- and back-slashes and combinations thereof.
|
||||
|
||||
// @Filename: f1.ts
|
||||
//// /*f1*/
|
||||
// @Filename: f2.ts
|
||||
//// /*f2*/
|
||||
|
||||
// @Filename: test.ts
|
||||
//// /// <reference path="f/*0*/
|
||||
//// /// <reference path="f1/*1*/
|
||||
//// /// <reference path="f1./*2*/
|
||||
//// /// <reference path="f1.t/*3*/
|
||||
|
||||
//// /// <reference path="./f/*4*/
|
||||
//// /// <reference path="./f1/*5*/
|
||||
//// /// <reference path="./f1./*6*/
|
||||
//// /// <reference path="./f1.t/*7*/
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Should give completions for relative references to ts files when allowJs is false
|
||||
|
||||
// @Filename: test0.ts
|
||||
//// /// <reference path="/*0*/
|
||||
//// /// <reference path=".//*1*/
|
||||
//// /// <reference path="./f/*2*/
|
||||
|
||||
// @Filename: f1.ts
|
||||
//// /*f1*/
|
||||
// @Filename: f1.js
|
||||
//// /*f1j*/
|
||||
// @Filename: f1.d.ts
|
||||
//// /*f1d*/
|
||||
// @Filename: f1.tsx
|
||||
//// /f2*/
|
||||
// @Filename: f1.js
|
||||
//// /*f3*/
|
||||
// @Filename: f1.jsx
|
||||
//// /*f4*/
|
||||
// @Filename: f1.cs
|
||||
//// /*f5*/
|
||||
|
||||
for (let i = 0; i < 3; i++) {
|
||||
goTo.marker("" + i);
|
||||
verify.completionListContains("f1.ts");
|
||||
verify.completionListContains("f1.d.ts");
|
||||
verify.completionListContains("f1.tsx");
|
||||
verify.not.completionListItemsCountIsGreaterThan(3);
|
||||
}
|
||||
@ -1,15 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Should give completions for relative references to js and ts files when allowJs is true
|
||||
// Should give completions for relative references to ts files when allowJs is false
|
||||
|
||||
// @allowJs: true
|
||||
|
||||
// @Filename: test0.ts
|
||||
//// /// <reference path="/*0*/
|
||||
//// /// <reference path="./*1*/
|
||||
//// /// <reference path="../*2*/
|
||||
//// /// <reference path=".//*3*/
|
||||
//// /// <reference path="./f/*4*/" />
|
||||
//// /// <reference path=".//*1*/
|
||||
//// /// <reference path="./f/*2*/
|
||||
|
||||
// @Filename: f1.ts
|
||||
//// /*f1*/
|
||||
@ -17,17 +15,21 @@
|
||||
//// /*f1j*/
|
||||
// @Filename: f1.d.ts
|
||||
//// /*f1d*/
|
||||
// @Filename: f2.tsx
|
||||
// @Filename: f1.tsx
|
||||
//// /f2*/
|
||||
// @Filename: f4.jsx
|
||||
// @Filename: f1.js
|
||||
//// /*f3*/
|
||||
// @Filename: f1.jsx
|
||||
//// /*f4*/
|
||||
// @Filename: f1.cs
|
||||
//// /*f5*/
|
||||
|
||||
for (let i = 0; i < 5; i++) {
|
||||
for (let i = 0; i < 3; i++) {
|
||||
goTo.marker("" + i);
|
||||
verify.completionListContains("f1.ts");
|
||||
verify.completionListContains("f1.js");
|
||||
verify.completionListContains("f1.d.ts");
|
||||
verify.completionListContains("f2.tsx");
|
||||
verify.completionListContains("f4.jsx");
|
||||
verify.completionListContains("f1.tsx");
|
||||
verify.completionListContains("f1.js");
|
||||
verify.completionListContains("f1.jsx");
|
||||
verify.not.completionListItemsCountIsGreaterThan(5);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user