TypeScript/tests/cases/fourslash/smartIndentOnFunctionParameters.ts

32 lines
739 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
/// <reference path='fourslash.ts' />
////function foo(a,
//// /*2*/b,/*0*/
2018-10-25 01:14:52 +02:00
//// //ABC/*3*/
2015-03-02 23:41:44 +01:00
//// /*4*/c
//// ) {
////};
////var x = [
2018-10-25 01:14:52 +02:00
//// /*5*///DEF/*1*/
2015-03-02 23:41:44 +01:00
//// 1,/*6*/
//// 2/*7*/
////]
goTo.marker("0");
2018-01-12 02:43:27 +01:00
edit.insert("\n");
2015-03-02 23:41:44 +01:00
verify.indentationIs(4);
goTo.marker("2");
verify.currentLineContentIs(" b,");
goTo.marker("3");
2018-10-25 01:14:52 +02:00
verify.currentLineContentIs(" //ABC");
2015-03-02 23:41:44 +01:00
goTo.marker("4");
verify.currentLineContentIs(" c");
goTo.marker("1");
2018-01-12 02:43:27 +01:00
edit.insert("\n");
2015-03-02 23:41:44 +01:00
verify.indentationIs(4);
goTo.marker("5");
2018-10-25 01:14:52 +02:00
verify.currentLineContentIs(" //DEF");
2015-03-02 23:41:44 +01:00
goTo.marker("6");
verify.currentLineContentIs(" 1,");
goTo.marker("7");
verify.currentLineContentIs(" 2");