Skip to content

Commit d2114e1

Browse files
Rename offsets in tests
1 parent 2109350 commit d2114e1

3 files changed

+16
-22
lines changed

tests/cases/fourslash/docCommentTemplateClassDeclMethods01.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

3-
const enum Indentation {
4-
Standard = 3,
5-
Indented = 12,
6-
}
3+
const singleLineOffset = 3;
4+
const multiLineOffset = 12;
75

86

97
////class C {
@@ -16,38 +14,38 @@ const enum Indentation {
1614
//// }
1715
////}
1816

19-
verify.docCommentTemplateAt("0", Indentation.Standard,
17+
verify.docCommentTemplateAt("0", singleLineOffset,
2018
"/** */");
2119

2220

23-
verify.docCommentTemplateAt("1", Indentation.Standard,
21+
verify.docCommentTemplateAt("1", singleLineOffset,
2422
"/** */");
2523

2624

27-
verify.docCommentTemplateAt("2", Indentation.Indented,
25+
verify.docCommentTemplateAt("2", multiLineOffset,
2826
`/**
2927
*
3028
* @param a
3129
*/
3230
`);
3331

34-
verify.docCommentTemplateAt("3", Indentation.Indented,
32+
verify.docCommentTemplateAt("3", multiLineOffset,
3533
`/**
3634
*
3735
* @param a
3836
* @param b
3937
*/
4038
`);
4139

42-
verify.docCommentTemplateAt("4", Indentation.Indented,
40+
verify.docCommentTemplateAt("4", multiLineOffset,
4341
`/**
4442
*
4543
* @param a
4644
* @param param1
4745
* @param param2
4846
*/`);
4947

50-
verify.docCommentTemplateAt("5", Indentation.Indented,
48+
verify.docCommentTemplateAt("5", multiLineOffset,
5149
`/**
5250
*
5351
* @param a

tests/cases/fourslash/docCommentTemplateClassDeclMethods02.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

3-
const enum Indentation {
4-
Standard = 3,
5-
Indented = 12,
6-
}
3+
const singleLineOffset = 3;
4+
const multiLineOffset = 12;
75

86
////class C {
97
//// /*0*/
@@ -14,10 +12,10 @@ const enum Indentation {
1412
//// [1 + 2 + 3 + Math.rand()](x: number, y: string, z = true) { }
1513
////}
1614

17-
verify.docCommentTemplateAt("0", Indentation.Standard,
15+
verify.docCommentTemplateAt("0", singleLineOffset,
1816
"/** */");
1917

20-
verify.docCommentTemplateAt("1", Indentation.Indented,
18+
verify.docCommentTemplateAt("1", multiLineOffset,
2119
`/**
2220
*
2321
* @param x

tests/cases/fourslash/docCommentTemplateObjectLiteralMethods01.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

3-
const enum Indentation {
4-
Standard = 3,
5-
Indented = 12,
6-
}
3+
const singleLineOffset = 3;
4+
const multiLineOffset = 12;
75

86
////var x = {
97
//// /*0*/
@@ -14,10 +12,10 @@ const enum Indentation {
1412
//// [1 + 2 + 3 + Math.rand()](x: number, y: string, z = true) { }
1513
////}
1614

17-
verify.docCommentTemplateAt("0", Indentation.Standard,
15+
verify.docCommentTemplateAt("0", singleLineOffset,
1816
"/** */");
1917

20-
verify.docCommentTemplateAt("1", Indentation.Indented,
18+
verify.docCommentTemplateAt("1", multiLineOffset,
2119
`/**
2220
*
2321
* @param x

0 commit comments

Comments
 (0)