2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////function parameterFunction(callback: (a: number, b: string) => void) {
|
|
|
|
//// callback(/*parameterFunction1*/5, /*parameterFunction2*/"");
|
|
|
|
////}
|
|
|
|
|
|
|
|
goTo.marker('parameterFunction1');
|
|
|
|
verify.signatureHelpCountIs(1);
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(2);
|
2014-08-30 03:02:05 +02:00
|
|
|
verify.currentSignatureHelpIs('callback(a: number, b: string): void');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("a");
|
|
|
|
verify.currentParameterSpanIs("a: number");
|
|
|
|
|
|
|
|
goTo.marker('parameterFunction2');
|
|
|
|
verify.currentSignatureHelpIs('callback(a: number, b: string): void');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("b");
|
|
|
|
verify.currentParameterSpanIs("b: string");
|