From cb4a1109d63dee7798ce9da466d26c503fcd7952 Mon Sep 17 00:00:00 2001 From: Paul van Brenk Date: Tue, 20 Jan 2015 15:51:24 -0800 Subject: [PATCH] test cases for builder in constructor --- ...dentifierDefinitionLocations_parameters.ts | 1 - ...mpletionListBuilderLocations_parameters.ts | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tests/cases/fourslash/completionListBuilderLocations_parameters.ts diff --git a/tests/cases/fourslash/completionListAtIdentifierDefinitionLocations_parameters.ts b/tests/cases/fourslash/completionListAtIdentifierDefinitionLocations_parameters.ts index f5a82cdcc57..cb1b7592518 100644 --- a/tests/cases/fourslash/completionListAtIdentifierDefinitionLocations_parameters.ts +++ b/tests/cases/fourslash/completionListAtIdentifierDefinitionLocations_parameters.ts @@ -24,5 +24,4 @@ test.markers().forEach((m) => { goTo.position(m.position, m.fileName); verify.completionListIsEmpty(); - verify.not.completionListIsBuilder(); }); diff --git a/tests/cases/fourslash/completionListBuilderLocations_parameters.ts b/tests/cases/fourslash/completionListBuilderLocations_parameters.ts new file mode 100644 index 00000000000..8d8d89cbdc7 --- /dev/null +++ b/tests/cases/fourslash/completionListBuilderLocations_parameters.ts @@ -0,0 +1,22 @@ +/// + +////var aa = 1; + +////class bar1{ constructor(/*constructorParamter1*/ + +////class bar2{ constructor(a/*constructorParamter2*/ + +////class bar3{ constructor(a, /*constructorParamter3*/ + +////class bar4{ constructor(a, b/*constructorParamter4*/ + +////class bar6{ constructor(public a, /*constructorParamter5*/ + +////class bar7{ constructor(private a, /*constructorParamter6*/ + + +test.markers().forEach((m) => { + goTo.position(m.position, m.fileName); + verify.not.completionListIsEmpty(); + verify.completionListIsBuilder(); +});