2014-11-18 22:48:24 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// function f(templateStrings, x, y, z) { return 10; }
|
|
|
|
//// function g(templateStrings, x, y, z) { return ""; }
|
|
|
|
////
|
|
|
|
//// f ` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${ g `/*1*/ /*2*/ /*3*/` } `
|
|
|
|
|
|
|
|
test.markers().forEach(m => {
|
|
|
|
goTo.position(m.position);
|
2014-11-19 02:41:58 +01:00
|
|
|
|
2014-11-18 22:48:24 +01:00
|
|
|
verify.signatureHelpCountIs(1);
|
2014-11-19 02:48:58 +01:00
|
|
|
verify.signatureHelpArgumentCountIs(1);
|
2014-11-19 02:41:58 +01:00
|
|
|
|
2014-11-19 20:55:05 +01:00
|
|
|
verify.currentSignatureParameterCountIs(4);
|
2014-11-18 22:48:24 +01:00
|
|
|
verify.currentSignatureHelpIs('g(templateStrings: any, x: any, y: any, z: any): string');
|
|
|
|
verify.currentParameterHelpArgumentNameIs("templateStrings");
|
|
|
|
verify.currentParameterSpanIs("templateStrings: any");
|
|
|
|
});
|