TypeScript/tests/cases/fourslash/formatSignatures.ts
2015-08-27 22:59:10 +09:00

31 lines
800 B
TypeScript

/// <reference path="fourslash.ts"/>
////type Foo = {
//// (
//// call: any/*callAutoformat*/
/////*callIndent*/
//// ): void;
//// new (
//// constr: any/*constrAutoformat*/
/////*constrIndent*/
//// ): void;
//// method(
//// whatever: any/*methodAutoformat*/
/////*methodIndent*/
//// ): void;
////};
format.document();
goTo.marker("callAutoformat");
verify.currentLineContentIs(" call: any");
goTo.marker("callIndent");
verify.indentationIs(8);
goTo.marker("constrAutoformat");
verify.currentLineContentIs(" constr: any");
goTo.marker("constrIndent");
verify.indentationIs(8);
goTo.marker("methodAutoformat");
verify.currentLineContentIs(" whatever: any");
goTo.marker("methodIndent");
verify.indentationIs(8);