2014-07-13 01:04:16 +02:00
/// <reference path='fourslash.ts' />
/////// This is simple /// comments
////function simple() {
////}
////
////sim/*1q*/ple( /*1*/);
////
/////// multiLine /// Comments
/////// This is example of multiline /// comments
/////// Another multiLine
////function multiLine() {
////}
////mul/*2q*/tiLine( /*2*/);
////
/////** this is eg of single line jsdoc style comment */
////function jsDocSingleLine() {
////}
////jsDoc/*3q*/SingleLine(/*3*/);
////
////
/////** this is multiple line jsdoc stule comment
////*New line1
////*New Line2*/
////function jsDocMultiLine() {
////}
////jsDocM/*4q*/ultiLine(/*4*/);
////
/////** this is multiple line jsdoc stule comment
////*New line1
////*New Line2*/
/////** Shoul mege this line as well
////* and this too*/ /** Another this one too*/
////function jsDocMultiLineMerge() {
////}
////jsDocMu/*5q*/ltiLineMerge(/*5*/);
////
////
/////// Triple slash comment
/////** jsdoc comment */
////function jsDocMixedComments1() {
////}
////jsDocMix/*6q*/edComments1(/*6*/);
////
/////// Triple slash comment
2014-09-11 22:21:27 +02:00
/////** jsdoc comment */ /** another jsDocComment*/
2014-07-13 01:04:16 +02:00
////function jsDocMixedComments2() {
////}
////jsDocMi/*7q*/xedComments2(/*7*/);
////
/////** jsdoc comment */ /*** another jsDocComment*/
/////// Triple slash comment
////function jsDocMixedComments3() {
////}
////jsDocMixe/*8q*/dComments3(/*8*/);
////
2014-09-11 22:21:27 +02:00
/////** jsdoc comment */ /** another jsDocComment*/
2014-07-13 01:04:16 +02:00
/////// Triple slash comment
/////// Triple slash comment 2
////function jsDocMixedComments4() {
////}
////jsDocMixed/*9q*/Comments4(/*9*/);
////
/////// Triple slash comment 1
2014-09-11 22:21:27 +02:00
/////** jsdoc comment */ /** another jsDocComment*/
2014-07-13 01:04:16 +02:00
/////// Triple slash comment
/////// Triple slash comment 2
////function jsDocMixedComments5() {
////}
////jsDocM/*10q*/ixedComments5(/*10*/);
////
2014-09-11 22:21:27 +02:00
/////** another jsDocComment*/
2014-07-13 01:04:16 +02:00
/////// Triple slash comment 1
/////// Triple slash comment
/////// Triple slash comment 2
/////** jsdoc comment */
////function jsDocMixedComments6() {
////}
////jsDocMix/*11q*/edComments6(/*11*/);
////
////// This shoulnot be help comment
////function noHelpComment1() {
////}
////noHel/*12q*/pComment1(/*12*/);
////
/////* This shoulnot be help comment */
////function noHelpComment2() {
////}
////noHelpC/*13q*/omment2(/*13*/);
////
////function noHelpComment3() {
////}
////noHelpC/*14q*/omment3(/*14*/);
/////** Adds two integers and returns the result
//// * @param {number} a first number
//// * @param b second number
//// */
2014-09-11 22:21:27 +02:00
////function sum(/*16aq*/a: number, /*17aq*/b: number) {
2014-07-13 01:04:16 +02:00
//// return /*18*/a + b;
////}
/////*15*/s/*16q*/um(/*16*/10, /*17*/20);
/////** This is multiplication function*/
/////** @param */
/////** @param a first number*/
/////** @param b */
/////** @param c {
//// @param d @anotherTag*/
/////** @param e LastParam @anotherTag*/
2014-09-11 22:21:27 +02:00
////function multiply(/*19aq*/a: number, /*20aq*/b: number, /*21aq*/c?: number, /*22aq*/d?, /*23aq*/e?) {
2014-07-13 01:04:16 +02:00
////}
////mult/*19q*/iply(/*19*/10,/*20*/ 20,/*21*/ 30, /*22*/40, /*23*/50);
/////** fn f1 with number
////* @param { string} b about b
////*/
2014-09-11 22:21:27 +02:00
////function f1(/*25aq*/a: number);
////function f1(/*26aq*/b: string);
2014-07-13 01:04:16 +02:00
/////**@param opt optional parameter*/
////function f1(aOrb, opt?) {
//// return /*24*/aOrb;
////}
////f/*25q*/1(/*25*/10);
////f/*26q*/1(/*26*/"hello");
/////*27*/
/////** This is subtract function
////@param { a
////*@param { number | } b this is about b
////@param { { () => string; } } c this is optional param c
////@param { { () => string; } d this is optional param d
////@param { { () => string; } } e this is optional param e
////@param { { { () => string; } } f this is optional param f
////*/
2014-09-11 22:21:27 +02:00
////function subtract(/*28aq*/a: number, /*29aq*/b: number, /*30aq*/c?: () => string, /*31aq*/d?: () => string, /*32aq*/e?: () => string, /*33aq*/f?: () => string) {
2014-07-13 01:04:16 +02:00
////}
////subt/*28q*/ract(/*28*/10, /*29*/ 20, /*30*/ null, /*31*/ null, /*32*/ null, /*33*/null);
/////** this is square function
////@paramTag { number } a this is input number of paramTag
////@param { number } a this is input number
////@returnType { number } it is return type
////*/
2014-09-11 22:21:27 +02:00
////function square(/*34aq*/a: number) {
2014-07-13 01:04:16 +02:00
//// return a * a;
////}
////squ/*34q*/are(/*34*/10);
/////** this is divide function
////@param { number} a this is a
////@paramTag { number } g this is optional param g
////@param { number} b this is b
////*/
2014-09-11 22:21:27 +02:00
////function divide(/*35aq*/a: number, /*36aq*/b: number) {
2014-07-13 01:04:16 +02:00
////}
////div/*35q*/ide(/*35*/10, /*36*/20);
/////**
////Function returns string concat of foo and bar
////@param {string} foo is string
////@param {string} bar is second string
////*/
2014-09-11 22:21:27 +02:00
////function fooBar(/*37aq*/foo: string, /*38aq*/bar: string) {
2014-07-13 01:04:16 +02:00
//// return foo + bar;
////}
////fo/*37q*/oBar(/*37*/"foo",/*38*/"bar");
/////** This is a comment */
////var x;
/////**
//// * This is a comment
//// */
////var y;
/////** this is jsdoc style function with param tag as well as inline parameter help
////*@param a it is first parameter
////*@param c it is third parameter
////*/
2014-09-11 22:21:27 +02:00
////function jsDocParamTest(/** this is inline comment for a *//*40aq*/a: number, /** this is inline comment for b*/ /*41aq*/b: number, /*42aq*/c: number, /*43aq*/d: number) {
2014-07-13 01:04:16 +02:00
//// return /*39*/a + b + c + d;
////}
/////*44*/jsD/*40q*/ocParamTest(/*40*/30, /*41*/40, /*42*/50, /*43*/60);
/////** This is function comment
//// * And properly aligned comment
//// */
////function jsDocCommentAlignmentTest1() {
////}
////jsDocCom/*45q*/mentAlignmentTest1(/*45*/);
/////** This is function comment
//// * And aligned with 4 space char margin
//// */
////function jsDocCommentAlignmentTest2() {
////}
////jsDocComme/*46q*/ntAlignmentTest2(/*46*/);
/////** This is function comment
//// * And aligned with 4 space char margin
//// * @param {string} a this is info about a
//// * spanning on two lines and aligned perfectly
//// * @param b this is info about b
//// * spanning on two lines and aligned perfectly
//// * spanning one more line alined perfectly
//// * spanning another line with more margin
//// * @param c this is info about b
//// * not aligned text about parameter will eat only one space
//// */
2014-09-11 22:21:27 +02:00
////function jsDocCommentAlignmentTest3(/*47aq*/a: string, /*48aq*/b, /*49aq*/c) {
2014-07-13 01:04:16 +02:00
////}
////jsDocComme/*47q*/ntAlignmentTest3(/*47*/"hello",/*48*/1, /*49*/2);
/////**/
////class NoQuic/*50*/kInfoClass {
////}
goTo . marker ( '1' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '1q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) simple(): void" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '2' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '2q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) multiLine(): void" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '3' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is eg of single line jsdoc style comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '3q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocSingleLine(): void" , "this is eg of single line jsdoc style comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '4' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is multiple line jsdoc stule comment\nNew line1\nNew Line2" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '4q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMultiLine(): void" , "this is multiple line jsdoc stule comment\nNew line1\nNew Line2" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '5' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is multiple line jsdoc stule comment\nNew line1\nNew Line2\nShoul mege this line as well\nand this too\nAnother this one too" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '5q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMultiLineMerge(): void" , "this is multiple line jsdoc stule comment\nNew line1\nNew Line2\nShoul mege this line as well\nand this too\nAnother this one too" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '6' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "jsdoc comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '6q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMixedComments1(): void" , "jsdoc comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '7' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "jsdoc comment \nanother jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '7q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMixedComments2(): void" , "jsdoc comment \nanother jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '8' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "jsdoc comment \n* another jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '8q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMixedComments3(): void" , "jsdoc comment \n* another jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '9' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "jsdoc comment \nanother jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '9q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMixedComments4(): void" , "jsdoc comment \nanother jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '10' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "jsdoc comment \nanother jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '10q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMixedComments5(): void" , "jsdoc comment \nanother jsDocComment" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '11' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "another jsDocComment\njsdoc comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '11q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocMixedComments6(): void" , "another jsDocComment\njsdoc comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '12' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '12q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) noHelpComment1(): void" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '13' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '13q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) noHelpComment2(): void" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '14' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '14q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) noHelpComment3(): void" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '15' ) ;
2014-09-29 18:45:03 +02:00
verify . completionListContains ( "sum" , "(function) sum(a: number, b: number): number" , "Adds two integers and returns the result" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '16' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "Adds two integers and returns the result" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "first number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '16q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) sum(a: number, b: number): number" , "Adds two integers and returns the result" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '16aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "first number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '17' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "Adds two integers and returns the result" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "second number" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '17aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: number" , "second number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '18' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "first number" ) ;
verify . completionListContains ( "a" , "(parameter) a: number" , "first number" ) ;
verify . completionListContains ( "b" , "(parameter) b: number" , "second number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '19' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "first number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '19q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) multiply(a: number, b: number, c?: number, d?: any, e?: any): void" , "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '19aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "first number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '20' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '20aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: number" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '21' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "{" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '21aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) c: number" , "{" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '22' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '22aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) d: any" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '23' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "LastParam " ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '23aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) e: any" , "LastParam " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '24' ) ;
2014-09-29 18:45:03 +02:00
verify . completionListContains ( "aOrb" , "(parameter) aOrb: any" , "" ) ;
verify . completionListContains ( "opt" , "(parameter) opt: any" , "optional parameter" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '25' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "fn f1 with number" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '25q' ) ;
2014-10-08 02:06:34 +02:00
verify . quickInfoIs ( "(function) f1(a: number): any (+1 overload)" , "fn f1 with number" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '25aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '26' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '26q' ) ;
2014-10-08 02:06:34 +02:00
verify . quickInfoIs ( "(function) f1(b: string): any (+1 overload)" , "" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '26aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: string" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '27' ) ;
2014-09-29 18:45:03 +02:00
verify . completionListContains ( "multiply" , "(function) multiply(a: number, b: number, c?: number, d?: any, e?: any): void" , "This is multiplication function\n@anotherTag\n@anotherTag" ) ;
2014-10-08 02:06:34 +02:00
verify . completionListContains ( "f1" , "(function) f1(a: number): any (+1 overload)" , "fn f1 with number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '28' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is subtract function" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '28q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string): void" , "This is subtract function" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '28aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '29' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is subtract function" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is about b" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '29aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: number" , "this is about b" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '30' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is subtract function" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is optional param c" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '30aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) c: () => string" , "this is optional param c" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '31' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is subtract function" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '31aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) d: () => string" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '32' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is subtract function" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is optional param e" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '32aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) e: () => string" , "this is optional param e" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '33' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is subtract function" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '33aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) f: () => string" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '34' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is square function\n@paramTag { number } a this is input number of paramTag\n@returnType { number } it is return type" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is input number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '34q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) square(a: number): number" , "this is square function\n@paramTag { number } a this is input number of paramTag\n@returnType { number } it is return type" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '34aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "this is input number" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '35' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is divide function\n@paramTag { number } g this is optional param g" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is a" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '35q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) divide(a: number, b: number): void" , "this is divide function\n@paramTag { number } g this is optional param g" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '35aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "this is a" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '36' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is divide function\n@paramTag { number } g this is optional param g" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is b" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '36aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: number" , "this is b" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '37' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "Function returns string concat of foo and bar" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "is string" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '37q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) fooBar(foo: string, bar: string): string" , "Function returns string concat of foo and bar" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '37aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) foo: string" , "is string" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '38' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "Function returns string concat of foo and bar" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "is second string" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '38aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) bar: string" , "is second string" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '39' ) ;
2014-09-29 18:45:03 +02:00
verify . completionListContains ( "a" , "(parameter) a: number" , "it is first parameter\nthis is inline comment for a " ) ;
verify . completionListContains ( "b" , "(parameter) b: number" , "this is inline comment for b" ) ;
verify . completionListContains ( "c" , "(parameter) c: number" , "it is third parameter" ) ;
verify . completionListContains ( "d" , "(parameter) d: number" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '40' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is jsdoc style function with param tag as well as inline parameter help" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "it is first parameter\nthis is inline comment for a " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '40q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocParamTest(a: number, b: number, c: number, d: number): number" , "this is jsdoc style function with param tag as well as inline parameter help" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '40aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: number" , "it is first parameter\nthis is inline comment for a " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '41' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is jsdoc style function with param tag as well as inline parameter help" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is inline comment for b" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '41aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: number" , "this is inline comment for b" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '42' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is jsdoc style function with param tag as well as inline parameter help" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "it is third parameter" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '42aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) c: number" , "it is third parameter" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '43' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "this is jsdoc style function with param tag as well as inline parameter help" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '43aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) d: number" , "" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '44' ) ;
2014-09-29 18:45:03 +02:00
verify . completionListContains ( "jsDocParamTest" , "(function) jsDocParamTest(a: number, b: number, c: number, d: number): number" , "this is jsdoc style function with param tag as well as inline parameter help" ) ;
verify . completionListContains ( "x" , "(var) x: any" , "This is a comment " ) ;
verify . completionListContains ( "y" , "(var) y: any" , "This is a comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '45' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is function comment\nAnd properly aligned comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '45q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocCommentAlignmentTest1(): void" , "This is function comment\nAnd properly aligned comment " ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '46' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is function comment\n And aligned with 4 space char margin" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '46q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocCommentAlignmentTest2(): void" , "This is function comment\n And aligned with 4 space char margin" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '47' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is function comment\n And aligned with 4 space char margin" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is info about a\nspanning on two lines and aligned perfectly" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '47q' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(function) jsDocCommentAlignmentTest3(a: string, b: any, c: any): void" , "This is function comment\n And aligned with 4 space char margin" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '47aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) a: string" , "this is info about a\nspanning on two lines and aligned perfectly" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '48' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is function comment\n And aligned with 4 space char margin" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '48aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) b: any" , "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '49' ) ;
2014-09-29 18:45:03 +02:00
verify . currentSignatureHelpDocCommentIs ( "This is function comment\n And aligned with 4 space char margin" ) ;
verify . currentParameterHelpArgumentDocCommentIs ( "this is info about b\nnot aligned text about parameter will eat only one space" ) ;
2014-09-11 22:21:27 +02:00
goTo . marker ( '49aq' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "(parameter) c: any" , "this is info about b\nnot aligned text about parameter will eat only one space" ) ;
2014-07-13 01:04:16 +02:00
goTo . marker ( '50' ) ;
2014-09-29 18:45:03 +02:00
verify . quickInfoIs ( "class NoQuickInfoClass" , "" ) ;