From df7066f2e738a06f06c62e1291c7e60feb06236d Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Wed, 10 Sep 2014 12:30:33 -0700 Subject: [PATCH] Enable completion fourslash tests --- ...eforeSemanticDiagnosticsInArrowFunction1.ts | 0 .../completionEntryForPrimitive.ts | 0 .../completionInTypeOf1.ts | 0 .../completionListAfterNumericLiteral.ts | 0 .../completionListAfterObjectLiteral1.ts | 0 .../completionListAtEOF2.ts | 0 .../completionListAtNodeBoundry.ts | 0 .../completionListBeforeKeyword.ts | 0 .../completionListCladule.ts | 0 .../completionListClassMembers.ts | 0 .../completionListEnumMembers.ts | 0 .../completionListEnumValues.ts | 0 .../completionListForDerivedType1.ts | 6 +++--- ...mberInAmbientModuleWithExportAssignment1.ts | 0 .../completionListFunctionExpression.ts | 0 .../completionListGenericConstraints.ts | 0 .../completionListGenericConstraintsNames.ts | 0 ...ompletionListInContextuallyTypedArgument.ts | 0 .../completionListInExtendsClause.ts | 0 .../completionListInExtendsClauseAtEOF.ts | 0 .../completionListInNamedFunctionExpression.ts | 4 ++-- .../completionListInObjectLiteral3.ts | 0 .../completionListInTypedObjectLiterals.ts | 0 .../completionListInTypedObjectLiterals2.ts | 0 .../completionListInTypedObjectLiterals3.ts | 0 .../completionListInTypedObjectLiterals4.ts | 0 ...edObjectLiteralsWithPartialPropertyNames.ts | 0 ...dObjectLiteralsWithPartialPropertyNames2.ts | 0 .../completionListInsideTargetTypedFunction.ts | 0 .../completionListInvalidMemberNames.ts | 0 .../completionListInvalidMemberNames2.ts | 0 .../completionListModuleMembers.ts | 0 .../completionListObjectMembers.ts | 2 +- ...onListOnFunctionCallWithOptionalArgument.ts | 0 .../completionListOnParam.ts | 0 .../completionListOnVarBetweenModules.ts | 0 .../completionListPrimitives.ts | 0 .../completionListPrivateMembers.ts | 0 .../completionListSuperMembers.ts | 0 .../completionListWithUnresolvedModule.ts | 0 .../memberCompletionFromFunctionCall.ts | 0 .../memberCompletionInForEach1.ts | 0 .../memberCompletionOnTypeParameters.ts | 0 .../memberCompletionOnTypeParameters2.ts | 0 .../fourslash/memberListInReopenedEnum.ts | 18 ++++++++++++++++++ .../memberListInWithBlock.ts | 0 .../memberListInsideObjectLiterals.ts | 0 .../memberListOfClass.ts | 1 + .../memberListOfEnumFromExternalModule.ts | 0 .../memberListOfExportedClass.ts | 1 + .../memberListOfModule.ts | 0 .../memberListOfModuleBeforeKeyword.ts | 0 .../memberListOnFunctionParameter.ts | 0 .../memberListOnThisInClassWithPrivates.ts | 4 ++-- .../fourslash_old/memberListInReopenedEnum.ts | 18 ------------------ 55 files changed, 28 insertions(+), 26 deletions(-) rename tests/cases/{fourslash_old => fourslash}/completionBeforeSemanticDiagnosticsInArrowFunction1.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionEntryForPrimitive.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionInTypeOf1.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListAfterNumericLiteral.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListAfterObjectLiteral1.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListAtEOF2.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListAtNodeBoundry.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListBeforeKeyword.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListCladule.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListClassMembers.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListEnumMembers.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListEnumValues.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListForDerivedType1.ts (73%) rename tests/cases/{fourslash_old => fourslash}/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListFunctionExpression.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListGenericConstraints.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListGenericConstraintsNames.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInContextuallyTypedArgument.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInExtendsClause.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInExtendsClauseAtEOF.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInNamedFunctionExpression.ts (85%) rename tests/cases/{fourslash_old => fourslash}/completionListInObjectLiteral3.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInTypedObjectLiterals.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInTypedObjectLiterals2.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInTypedObjectLiterals3.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInTypedObjectLiterals4.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInTypedObjectLiteralsWithPartialPropertyNames.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInTypedObjectLiteralsWithPartialPropertyNames2.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInsideTargetTypedFunction.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInvalidMemberNames.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListInvalidMemberNames2.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListModuleMembers.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListObjectMembers.ts (80%) rename tests/cases/{fourslash_old => fourslash}/completionListOnFunctionCallWithOptionalArgument.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListOnParam.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListOnVarBetweenModules.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListPrimitives.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListPrivateMembers.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListSuperMembers.ts (100%) rename tests/cases/{fourslash_old => fourslash}/completionListWithUnresolvedModule.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberCompletionFromFunctionCall.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberCompletionInForEach1.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberCompletionOnTypeParameters.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberCompletionOnTypeParameters2.ts (100%) create mode 100644 tests/cases/fourslash/memberListInReopenedEnum.ts rename tests/cases/{fourslash_old => fourslash}/memberListInWithBlock.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberListInsideObjectLiterals.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberListOfClass.ts (78%) rename tests/cases/{fourslash_old => fourslash}/memberListOfEnumFromExternalModule.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberListOfExportedClass.ts (75%) rename tests/cases/{fourslash_old => fourslash}/memberListOfModule.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberListOfModuleBeforeKeyword.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberListOnFunctionParameter.ts (100%) rename tests/cases/{fourslash_old => fourslash}/memberListOnThisInClassWithPrivates.ts (58%) delete mode 100644 tests/cases/fourslash_old/memberListInReopenedEnum.ts diff --git a/tests/cases/fourslash_old/completionBeforeSemanticDiagnosticsInArrowFunction1.ts b/tests/cases/fourslash/completionBeforeSemanticDiagnosticsInArrowFunction1.ts similarity index 100% rename from tests/cases/fourslash_old/completionBeforeSemanticDiagnosticsInArrowFunction1.ts rename to tests/cases/fourslash/completionBeforeSemanticDiagnosticsInArrowFunction1.ts diff --git a/tests/cases/fourslash_old/completionEntryForPrimitive.ts b/tests/cases/fourslash/completionEntryForPrimitive.ts similarity index 100% rename from tests/cases/fourslash_old/completionEntryForPrimitive.ts rename to tests/cases/fourslash/completionEntryForPrimitive.ts diff --git a/tests/cases/fourslash_old/completionInTypeOf1.ts b/tests/cases/fourslash/completionInTypeOf1.ts similarity index 100% rename from tests/cases/fourslash_old/completionInTypeOf1.ts rename to tests/cases/fourslash/completionInTypeOf1.ts diff --git a/tests/cases/fourslash_old/completionListAfterNumericLiteral.ts b/tests/cases/fourslash/completionListAfterNumericLiteral.ts similarity index 100% rename from tests/cases/fourslash_old/completionListAfterNumericLiteral.ts rename to tests/cases/fourslash/completionListAfterNumericLiteral.ts diff --git a/tests/cases/fourslash_old/completionListAfterObjectLiteral1.ts b/tests/cases/fourslash/completionListAfterObjectLiteral1.ts similarity index 100% rename from tests/cases/fourslash_old/completionListAfterObjectLiteral1.ts rename to tests/cases/fourslash/completionListAfterObjectLiteral1.ts diff --git a/tests/cases/fourslash_old/completionListAtEOF2.ts b/tests/cases/fourslash/completionListAtEOF2.ts similarity index 100% rename from tests/cases/fourslash_old/completionListAtEOF2.ts rename to tests/cases/fourslash/completionListAtEOF2.ts diff --git a/tests/cases/fourslash_old/completionListAtNodeBoundry.ts b/tests/cases/fourslash/completionListAtNodeBoundry.ts similarity index 100% rename from tests/cases/fourslash_old/completionListAtNodeBoundry.ts rename to tests/cases/fourslash/completionListAtNodeBoundry.ts diff --git a/tests/cases/fourslash_old/completionListBeforeKeyword.ts b/tests/cases/fourslash/completionListBeforeKeyword.ts similarity index 100% rename from tests/cases/fourslash_old/completionListBeforeKeyword.ts rename to tests/cases/fourslash/completionListBeforeKeyword.ts diff --git a/tests/cases/fourslash_old/completionListCladule.ts b/tests/cases/fourslash/completionListCladule.ts similarity index 100% rename from tests/cases/fourslash_old/completionListCladule.ts rename to tests/cases/fourslash/completionListCladule.ts diff --git a/tests/cases/fourslash_old/completionListClassMembers.ts b/tests/cases/fourslash/completionListClassMembers.ts similarity index 100% rename from tests/cases/fourslash_old/completionListClassMembers.ts rename to tests/cases/fourslash/completionListClassMembers.ts diff --git a/tests/cases/fourslash_old/completionListEnumMembers.ts b/tests/cases/fourslash/completionListEnumMembers.ts similarity index 100% rename from tests/cases/fourslash_old/completionListEnumMembers.ts rename to tests/cases/fourslash/completionListEnumMembers.ts diff --git a/tests/cases/fourslash_old/completionListEnumValues.ts b/tests/cases/fourslash/completionListEnumValues.ts similarity index 100% rename from tests/cases/fourslash_old/completionListEnumValues.ts rename to tests/cases/fourslash/completionListEnumValues.ts diff --git a/tests/cases/fourslash_old/completionListForDerivedType1.ts b/tests/cases/fourslash/completionListForDerivedType1.ts similarity index 73% rename from tests/cases/fourslash_old/completionListForDerivedType1.ts rename to tests/cases/fourslash/completionListForDerivedType1.ts index a3dd192a754..0c514713c21 100644 --- a/tests/cases/fourslash_old/completionListForDerivedType1.ts +++ b/tests/cases/fourslash/completionListForDerivedType1.ts @@ -12,10 +12,10 @@ ////f2./*2*/ // here bar has return type any, but bar2 is Foo2 goTo.marker('1'); -verify.completionListContains('bar', '(): IFoo'); +verify.completionListContains('bar', '() => IFoo'); verify.not.completionListContains('bar2'); edit.insert('bar();'); // just to make the file valid before checking next completion location goTo.marker('2'); -verify.completionListContains('bar', '(): IFoo'); -verify.completionListContains('bar2', '(): IFoo2'); \ No newline at end of file +verify.completionListContains('bar', '() => IFoo'); +verify.completionListContains('bar2', '() => IFoo2'); \ No newline at end of file diff --git a/tests/cases/fourslash_old/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1.ts b/tests/cases/fourslash/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1.ts similarity index 100% rename from tests/cases/fourslash_old/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1.ts rename to tests/cases/fourslash/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1.ts diff --git a/tests/cases/fourslash_old/completionListFunctionExpression.ts b/tests/cases/fourslash/completionListFunctionExpression.ts similarity index 100% rename from tests/cases/fourslash_old/completionListFunctionExpression.ts rename to tests/cases/fourslash/completionListFunctionExpression.ts diff --git a/tests/cases/fourslash_old/completionListGenericConstraints.ts b/tests/cases/fourslash/completionListGenericConstraints.ts similarity index 100% rename from tests/cases/fourslash_old/completionListGenericConstraints.ts rename to tests/cases/fourslash/completionListGenericConstraints.ts diff --git a/tests/cases/fourslash_old/completionListGenericConstraintsNames.ts b/tests/cases/fourslash/completionListGenericConstraintsNames.ts similarity index 100% rename from tests/cases/fourslash_old/completionListGenericConstraintsNames.ts rename to tests/cases/fourslash/completionListGenericConstraintsNames.ts diff --git a/tests/cases/fourslash_old/completionListInContextuallyTypedArgument.ts b/tests/cases/fourslash/completionListInContextuallyTypedArgument.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInContextuallyTypedArgument.ts rename to tests/cases/fourslash/completionListInContextuallyTypedArgument.ts diff --git a/tests/cases/fourslash_old/completionListInExtendsClause.ts b/tests/cases/fourslash/completionListInExtendsClause.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInExtendsClause.ts rename to tests/cases/fourslash/completionListInExtendsClause.ts diff --git a/tests/cases/fourslash_old/completionListInExtendsClauseAtEOF.ts b/tests/cases/fourslash/completionListInExtendsClauseAtEOF.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInExtendsClauseAtEOF.ts rename to tests/cases/fourslash/completionListInExtendsClauseAtEOF.ts diff --git a/tests/cases/fourslash_old/completionListInNamedFunctionExpression.ts b/tests/cases/fourslash/completionListInNamedFunctionExpression.ts similarity index 85% rename from tests/cases/fourslash_old/completionListInNamedFunctionExpression.ts rename to tests/cases/fourslash/completionListInNamedFunctionExpression.ts index 6023cfee444..a4dd328e1ed 100644 --- a/tests/cases/fourslash_old/completionListInNamedFunctionExpression.ts +++ b/tests/cases/fourslash/completionListInNamedFunctionExpression.ts @@ -24,9 +24,9 @@ goTo.marker("insideFunctionExpression"); verify.memberListContains("foo"); goTo.marker("referenceInsideFunctionExpression"); -verify.quickInfoIs("(): number"); +verify.quickInfoIs("() => number"); goTo.marker("referenceInGlobalScope"); -verify.quickInfoIs("(a: number): string"); +verify.quickInfoIs("(a: number) => string"); diff --git a/tests/cases/fourslash_old/completionListInObjectLiteral3.ts b/tests/cases/fourslash/completionListInObjectLiteral3.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInObjectLiteral3.ts rename to tests/cases/fourslash/completionListInObjectLiteral3.ts diff --git a/tests/cases/fourslash_old/completionListInTypedObjectLiterals.ts b/tests/cases/fourslash/completionListInTypedObjectLiterals.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInTypedObjectLiterals.ts rename to tests/cases/fourslash/completionListInTypedObjectLiterals.ts diff --git a/tests/cases/fourslash_old/completionListInTypedObjectLiterals2.ts b/tests/cases/fourslash/completionListInTypedObjectLiterals2.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInTypedObjectLiterals2.ts rename to tests/cases/fourslash/completionListInTypedObjectLiterals2.ts diff --git a/tests/cases/fourslash_old/completionListInTypedObjectLiterals3.ts b/tests/cases/fourslash/completionListInTypedObjectLiterals3.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInTypedObjectLiterals3.ts rename to tests/cases/fourslash/completionListInTypedObjectLiterals3.ts diff --git a/tests/cases/fourslash_old/completionListInTypedObjectLiterals4.ts b/tests/cases/fourslash/completionListInTypedObjectLiterals4.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInTypedObjectLiterals4.ts rename to tests/cases/fourslash/completionListInTypedObjectLiterals4.ts diff --git a/tests/cases/fourslash_old/completionListInTypedObjectLiteralsWithPartialPropertyNames.ts b/tests/cases/fourslash/completionListInTypedObjectLiteralsWithPartialPropertyNames.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInTypedObjectLiteralsWithPartialPropertyNames.ts rename to tests/cases/fourslash/completionListInTypedObjectLiteralsWithPartialPropertyNames.ts diff --git a/tests/cases/fourslash_old/completionListInTypedObjectLiteralsWithPartialPropertyNames2.ts b/tests/cases/fourslash/completionListInTypedObjectLiteralsWithPartialPropertyNames2.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInTypedObjectLiteralsWithPartialPropertyNames2.ts rename to tests/cases/fourslash/completionListInTypedObjectLiteralsWithPartialPropertyNames2.ts diff --git a/tests/cases/fourslash_old/completionListInsideTargetTypedFunction.ts b/tests/cases/fourslash/completionListInsideTargetTypedFunction.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInsideTargetTypedFunction.ts rename to tests/cases/fourslash/completionListInsideTargetTypedFunction.ts diff --git a/tests/cases/fourslash_old/completionListInvalidMemberNames.ts b/tests/cases/fourslash/completionListInvalidMemberNames.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInvalidMemberNames.ts rename to tests/cases/fourslash/completionListInvalidMemberNames.ts diff --git a/tests/cases/fourslash_old/completionListInvalidMemberNames2.ts b/tests/cases/fourslash/completionListInvalidMemberNames2.ts similarity index 100% rename from tests/cases/fourslash_old/completionListInvalidMemberNames2.ts rename to tests/cases/fourslash/completionListInvalidMemberNames2.ts diff --git a/tests/cases/fourslash_old/completionListModuleMembers.ts b/tests/cases/fourslash/completionListModuleMembers.ts similarity index 100% rename from tests/cases/fourslash_old/completionListModuleMembers.ts rename to tests/cases/fourslash/completionListModuleMembers.ts diff --git a/tests/cases/fourslash_old/completionListObjectMembers.ts b/tests/cases/fourslash/completionListObjectMembers.ts similarity index 80% rename from tests/cases/fourslash_old/completionListObjectMembers.ts rename to tests/cases/fourslash/completionListObjectMembers.ts index 63c0e96bc04..c23eff12dbc 100644 --- a/tests/cases/fourslash_old/completionListObjectMembers.ts +++ b/tests/cases/fourslash/completionListObjectMembers.ts @@ -11,4 +11,4 @@ goTo.marker(); verify.memberListContains("bar", 'any'); -verify.memberListContains("foo", '(bar: any): any'); +verify.memberListContains("foo", '(bar: any) => any'); diff --git a/tests/cases/fourslash_old/completionListOnFunctionCallWithOptionalArgument.ts b/tests/cases/fourslash/completionListOnFunctionCallWithOptionalArgument.ts similarity index 100% rename from tests/cases/fourslash_old/completionListOnFunctionCallWithOptionalArgument.ts rename to tests/cases/fourslash/completionListOnFunctionCallWithOptionalArgument.ts diff --git a/tests/cases/fourslash_old/completionListOnParam.ts b/tests/cases/fourslash/completionListOnParam.ts similarity index 100% rename from tests/cases/fourslash_old/completionListOnParam.ts rename to tests/cases/fourslash/completionListOnParam.ts diff --git a/tests/cases/fourslash_old/completionListOnVarBetweenModules.ts b/tests/cases/fourslash/completionListOnVarBetweenModules.ts similarity index 100% rename from tests/cases/fourslash_old/completionListOnVarBetweenModules.ts rename to tests/cases/fourslash/completionListOnVarBetweenModules.ts diff --git a/tests/cases/fourslash_old/completionListPrimitives.ts b/tests/cases/fourslash/completionListPrimitives.ts similarity index 100% rename from tests/cases/fourslash_old/completionListPrimitives.ts rename to tests/cases/fourslash/completionListPrimitives.ts diff --git a/tests/cases/fourslash_old/completionListPrivateMembers.ts b/tests/cases/fourslash/completionListPrivateMembers.ts similarity index 100% rename from tests/cases/fourslash_old/completionListPrivateMembers.ts rename to tests/cases/fourslash/completionListPrivateMembers.ts diff --git a/tests/cases/fourslash_old/completionListSuperMembers.ts b/tests/cases/fourslash/completionListSuperMembers.ts similarity index 100% rename from tests/cases/fourslash_old/completionListSuperMembers.ts rename to tests/cases/fourslash/completionListSuperMembers.ts diff --git a/tests/cases/fourslash_old/completionListWithUnresolvedModule.ts b/tests/cases/fourslash/completionListWithUnresolvedModule.ts similarity index 100% rename from tests/cases/fourslash_old/completionListWithUnresolvedModule.ts rename to tests/cases/fourslash/completionListWithUnresolvedModule.ts diff --git a/tests/cases/fourslash_old/memberCompletionFromFunctionCall.ts b/tests/cases/fourslash/memberCompletionFromFunctionCall.ts similarity index 100% rename from tests/cases/fourslash_old/memberCompletionFromFunctionCall.ts rename to tests/cases/fourslash/memberCompletionFromFunctionCall.ts diff --git a/tests/cases/fourslash_old/memberCompletionInForEach1.ts b/tests/cases/fourslash/memberCompletionInForEach1.ts similarity index 100% rename from tests/cases/fourslash_old/memberCompletionInForEach1.ts rename to tests/cases/fourslash/memberCompletionInForEach1.ts diff --git a/tests/cases/fourslash_old/memberCompletionOnTypeParameters.ts b/tests/cases/fourslash/memberCompletionOnTypeParameters.ts similarity index 100% rename from tests/cases/fourslash_old/memberCompletionOnTypeParameters.ts rename to tests/cases/fourslash/memberCompletionOnTypeParameters.ts diff --git a/tests/cases/fourslash_old/memberCompletionOnTypeParameters2.ts b/tests/cases/fourslash/memberCompletionOnTypeParameters2.ts similarity index 100% rename from tests/cases/fourslash_old/memberCompletionOnTypeParameters2.ts rename to tests/cases/fourslash/memberCompletionOnTypeParameters2.ts diff --git a/tests/cases/fourslash/memberListInReopenedEnum.ts b/tests/cases/fourslash/memberListInReopenedEnum.ts new file mode 100644 index 00000000000..ede924b678f --- /dev/null +++ b/tests/cases/fourslash/memberListInReopenedEnum.ts @@ -0,0 +1,18 @@ +/// + +////module M { +//// enum E { +//// A, B +//// } +//// enum E { +//// C = 0, D +//// } +//// var x = E./*1*/ +////} + + +goTo.marker('1'); +verify.memberListContains('A', 'E', undefined, "E.A"); +verify.memberListContains('B', 'E', undefined, "E.B"); +verify.memberListContains('C', 'E', undefined, "E.C"); +verify.memberListContains('D', 'E', undefined, "E.D"); \ No newline at end of file diff --git a/tests/cases/fourslash_old/memberListInWithBlock.ts b/tests/cases/fourslash/memberListInWithBlock.ts similarity index 100% rename from tests/cases/fourslash_old/memberListInWithBlock.ts rename to tests/cases/fourslash/memberListInWithBlock.ts diff --git a/tests/cases/fourslash_old/memberListInsideObjectLiterals.ts b/tests/cases/fourslash/memberListInsideObjectLiterals.ts similarity index 100% rename from tests/cases/fourslash_old/memberListInsideObjectLiterals.ts rename to tests/cases/fourslash/memberListInsideObjectLiterals.ts diff --git a/tests/cases/fourslash_old/memberListOfClass.ts b/tests/cases/fourslash/memberListOfClass.ts similarity index 78% rename from tests/cases/fourslash_old/memberListOfClass.ts rename to tests/cases/fourslash/memberListOfClass.ts index c6ac4973fb7..a28f568b758 100644 --- a/tests/cases/fourslash_old/memberListOfClass.ts +++ b/tests/cases/fourslash/memberListOfClass.ts @@ -10,6 +10,7 @@ ////f./**/ goTo.marker(); +debug.printCompletionListMembers(); verify.memberListCount(2); verify.memberListContains('pubMeth', '(): void'); verify.memberListContains('pubProp', 'number'); \ No newline at end of file diff --git a/tests/cases/fourslash_old/memberListOfEnumFromExternalModule.ts b/tests/cases/fourslash/memberListOfEnumFromExternalModule.ts similarity index 100% rename from tests/cases/fourslash_old/memberListOfEnumFromExternalModule.ts rename to tests/cases/fourslash/memberListOfEnumFromExternalModule.ts diff --git a/tests/cases/fourslash_old/memberListOfExportedClass.ts b/tests/cases/fourslash/memberListOfExportedClass.ts similarity index 75% rename from tests/cases/fourslash_old/memberListOfExportedClass.ts rename to tests/cases/fourslash/memberListOfExportedClass.ts index a564504e7ef..853856747de 100644 --- a/tests/cases/fourslash_old/memberListOfExportedClass.ts +++ b/tests/cases/fourslash/memberListOfExportedClass.ts @@ -11,5 +11,6 @@ ////c./**/ // test on c. goTo.marker(); +debug.printCompletionListMembers(); verify.memberListCount(1); verify.memberListContains('pub', 'number'); \ No newline at end of file diff --git a/tests/cases/fourslash_old/memberListOfModule.ts b/tests/cases/fourslash/memberListOfModule.ts similarity index 100% rename from tests/cases/fourslash_old/memberListOfModule.ts rename to tests/cases/fourslash/memberListOfModule.ts diff --git a/tests/cases/fourslash_old/memberListOfModuleBeforeKeyword.ts b/tests/cases/fourslash/memberListOfModuleBeforeKeyword.ts similarity index 100% rename from tests/cases/fourslash_old/memberListOfModuleBeforeKeyword.ts rename to tests/cases/fourslash/memberListOfModuleBeforeKeyword.ts diff --git a/tests/cases/fourslash_old/memberListOnFunctionParameter.ts b/tests/cases/fourslash/memberListOnFunctionParameter.ts similarity index 100% rename from tests/cases/fourslash_old/memberListOnFunctionParameter.ts rename to tests/cases/fourslash/memberListOnFunctionParameter.ts diff --git a/tests/cases/fourslash_old/memberListOnThisInClassWithPrivates.ts b/tests/cases/fourslash/memberListOnThisInClassWithPrivates.ts similarity index 58% rename from tests/cases/fourslash_old/memberListOnThisInClassWithPrivates.ts rename to tests/cases/fourslash/memberListOnThisInClassWithPrivates.ts index 1b77948f175..6df5b555778 100644 --- a/tests/cases/fourslash_old/memberListOnThisInClassWithPrivates.ts +++ b/tests/cases/fourslash/memberListOnThisInClassWithPrivates.ts @@ -8,6 +8,6 @@ ////} goTo.marker(); -verify.memberListContains('privMeth', '(): void'); -verify.memberListContains('pubMeth', '(): void'); +verify.memberListContains('privMeth', '() => void'); +verify.memberListContains('pubMeth', '() => void'); verify.memberListContains('pubProp', 'number'); \ No newline at end of file diff --git a/tests/cases/fourslash_old/memberListInReopenedEnum.ts b/tests/cases/fourslash_old/memberListInReopenedEnum.ts deleted file mode 100644 index b1168f54b15..00000000000 --- a/tests/cases/fourslash_old/memberListInReopenedEnum.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// - -////module M { -//// enum E { -//// A, B -//// } -//// enum E { -//// C = 0, D -//// } -//// var x = E./*1*/ -////} - - -goTo.marker('1'); -verify.memberListContains('A', 'E', undefined, "M.E.A"); -verify.memberListContains('B', 'E', undefined, "M.E.B"); -verify.memberListContains('C', 'E', undefined, "M.E.C"); -verify.memberListContains('D', 'E', undefined, "M.E.D"); \ No newline at end of file