From ab20cf9f141c9d5bdc28eb3bb0ddf7ff9add07de Mon Sep 17 00:00:00 2001 From: Yui T Date: Mon, 17 Aug 2015 22:02:05 -0700 Subject: [PATCH] Add test for completion in type parater of type alias --- ...mpletionListInTypeParameterOfTypeAlias1.ts | 18 ++++++++++++++++ ...mpletionListInTypeParameterOfTypeAlias2.ts | 21 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 tests/cases/fourslash/completionListInTypeParameterOfTypeAlias1.ts create mode 100644 tests/cases/fourslash/completionListInTypeParameterOfTypeAlias2.ts diff --git a/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias1.ts b/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias1.ts new file mode 100644 index 00000000000..ec20cdb409f --- /dev/null +++ b/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias1.ts @@ -0,0 +1,18 @@ +/// + +////type List1 = T[]; +////type List4 = /*2*/T[]; +////type List3 = /*3*/; + +/*goTo.marker("0"); +verify.completionListIsEmpty(); +goTo.marker("1"); +verify.not.completionListIsEmpty(); +goTo.marker("2"); +verify.completionListContains("T"); +*/ +goTo.marker("3"); +verify.not.completionListIsEmpty(); +verify.not.completionListContains("T"); +verify.completionListContains("T1"); \ No newline at end of file diff --git a/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias2.ts b/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias2.ts new file mode 100644 index 00000000000..e804fb8946a --- /dev/null +++ b/tests/cases/fourslash/completionListInTypeParameterOfTypeAlias2.ts @@ -0,0 +1,21 @@ +/// + +////type Map1 = []; +////type Map1 = /*2*/[]; +////type Map1 =