mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-05 10:32:08 -05:00
add test
This commit is contained in:
52
tests/cases/fourslash/indentationInAmdIife.ts
Normal file
52
tests/cases/fourslash/indentationInAmdIife.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
//// function foo(a?,b?) { b(a); }
|
||||
////
|
||||
//// (foo)(1, function() {/*4_0*/
|
||||
//// });
|
||||
////
|
||||
//// /////////////
|
||||
////
|
||||
//// (
|
||||
//// foo)(1, function () {/*4_1*/
|
||||
//// });
|
||||
//// (foo)
|
||||
//// (1, function () {/*8_0*/
|
||||
//// });
|
||||
//// (foo)(1,
|
||||
//// function () {/*8_1*/
|
||||
//// });
|
||||
//// (foo)(1, function()
|
||||
//// {/*4_2*/
|
||||
//// });
|
||||
////
|
||||
//// //////////////////////
|
||||
////
|
||||
//// (foo
|
||||
//// )(1, function () {/*4_3*/
|
||||
//// });
|
||||
//// (foo
|
||||
//// )
|
||||
//// (1, function () {/*8_2*/
|
||||
//// });
|
||||
//// (foo
|
||||
//// )(1,
|
||||
//// function () {/*8_3*/
|
||||
//// });
|
||||
//// (foo
|
||||
//// )(1, function()
|
||||
//// {/*4_4*/
|
||||
//// });
|
||||
|
||||
|
||||
for (let i = 0; i < 5; ++i) {
|
||||
goTo.marker(`4_${i}`);
|
||||
edit.insertLine("");
|
||||
verify.indentationIs(4);
|
||||
}
|
||||
|
||||
for (let i = 1; i < 4; ++i) {
|
||||
goTo.marker(`8_${i}`);
|
||||
edit.insertLine("");
|
||||
verify.indentationIs(8);
|
||||
}
|
||||
Reference in New Issue
Block a user