Skip to content

Commit f13c16d

Browse files
committed
Fix tests
1 parent 05882ff commit f13c16d

9 files changed

+60
-73
lines changed

tests/baselines/reference/quickInfoDisplayPartsConst.baseline

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"kind": "space"
3434
},
3535
{
36-
"text": "number",
37-
"kind": "keyword"
36+
"text": "10",
37+
"kind": "stringLiteral"
3838
}
3939
],
4040
"documentation": []
@@ -74,8 +74,8 @@
7474
"kind": "space"
7575
},
7676
{
77-
"text": "number",
78-
"kind": "keyword"
77+
"text": "10",
78+
"kind": "stringLiteral"
7979
}
8080
],
8181
"documentation": []
@@ -115,8 +115,8 @@
115115
"kind": "space"
116116
},
117117
{
118-
"text": "number",
119-
"kind": "keyword"
118+
"text": "10",
119+
"kind": "stringLiteral"
120120
}
121121
],
122122
"documentation": []
@@ -156,8 +156,8 @@
156156
"kind": "space"
157157
},
158158
{
159-
"text": "number",
160-
"kind": "keyword"
159+
"text": "10",
160+
"kind": "stringLiteral"
161161
}
162162
],
163163
"documentation": []
@@ -197,8 +197,8 @@
197197
"kind": "space"
198198
},
199199
{
200-
"text": "number",
201-
"kind": "keyword"
200+
"text": "10",
201+
"kind": "stringLiteral"
202202
}
203203
],
204204
"documentation": []
@@ -246,8 +246,8 @@
246246
"kind": "space"
247247
},
248248
{
249-
"text": "number",
250-
"kind": "keyword"
249+
"text": "10",
250+
"kind": "stringLiteral"
251251
}
252252
],
253253
"documentation": []
@@ -287,8 +287,8 @@
287287
"kind": "space"
288288
},
289289
{
290-
"text": "number",
291-
"kind": "keyword"
290+
"text": "10",
291+
"kind": "stringLiteral"
292292
}
293293
],
294294
"documentation": []

tests/baselines/reference/quickInfoDisplayPartsTypeParameterInClass.baseline

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,8 +1282,8 @@
12821282
"kind": "punctuation"
12831283
},
12841284
{
1285-
"text": "string",
1286-
"kind": "keyword"
1285+
"text": "\"hello\"",
1286+
"kind": "stringLiteral"
12871287
},
12881288
{
12891289
"text": ">",
@@ -1306,8 +1306,8 @@
13061306
"kind": "space"
13071307
},
13081308
{
1309-
"text": "string",
1310-
"kind": "keyword"
1309+
"text": "\"hello\"",
1310+
"kind": "stringLiteral"
13111311
},
13121312
{
13131313
"text": ",",
@@ -1346,8 +1346,8 @@
13461346
"kind": "space"
13471347
},
13481348
{
1349-
"text": "string",
1350-
"kind": "keyword"
1349+
"text": "\"hello\"",
1350+
"kind": "stringLiteral"
13511351
}
13521352
],
13531353
"documentation": []

tests/baselines/reference/quickInfoDisplayPartsTypeParameterInFunction.baseline

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@
406406
"kind": "punctuation"
407407
},
408408
{
409-
"text": "string",
410-
"kind": "keyword"
409+
"text": "\"Hello\"",
410+
"kind": "stringLiteral"
411411
},
412412
{
413413
"text": ">",
@@ -430,8 +430,8 @@
430430
"kind": "space"
431431
},
432432
{
433-
"text": "string",
434-
"kind": "keyword"
433+
"text": "\"Hello\"",
434+
"kind": "stringLiteral"
435435
},
436436
{
437437
"text": ")",
@@ -446,8 +446,8 @@
446446
"kind": "space"
447447
},
448448
{
449-
"text": "string",
450-
"kind": "keyword"
449+
"text": "\"Hello\"",
450+
"kind": "stringLiteral"
451451
}
452452
],
453453
"documentation": []

tests/baselines/reference/quickInfoDisplayPartsTypeParameterInInterface.baseline

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,8 +2052,8 @@
20522052
"kind": "punctuation"
20532053
},
20542054
{
2055-
"text": "string",
2056-
"kind": "keyword"
2055+
"text": "\"hello\"",
2056+
"kind": "stringLiteral"
20572057
},
20582058
{
20592059
"text": ">",
@@ -2076,8 +2076,8 @@
20762076
"kind": "space"
20772077
},
20782078
{
2079-
"text": "string",
2080-
"kind": "keyword"
2079+
"text": "\"hello\"",
2080+
"kind": "stringLiteral"
20812081
},
20822082
{
20832083
"text": ",",
@@ -2120,8 +2120,8 @@
21202120
"kind": "space"
21212121
},
21222122
{
2123-
"text": "string",
2124-
"kind": "keyword"
2123+
"text": "\"hello\"",
2124+
"kind": "stringLiteral"
21252125
}
21262126
],
21272127
"documentation": []
@@ -2169,8 +2169,8 @@
21692169
"kind": "punctuation"
21702170
},
21712171
{
2172-
"text": "string",
2173-
"kind": "keyword"
2172+
"text": "\"hello\"",
2173+
"kind": "stringLiteral"
21742174
},
21752175
{
21762176
"text": ">",
@@ -2193,8 +2193,8 @@
21932193
"kind": "space"
21942194
},
21952195
{
2196-
"text": "string",
2197-
"kind": "keyword"
2196+
"text": "\"hello\"",
2197+
"kind": "stringLiteral"
21982198
},
21992199
{
22002200
"text": ",",
@@ -2237,8 +2237,8 @@
22372237
"kind": "space"
22382238
},
22392239
{
2240-
"text": "string",
2241-
"kind": "keyword"
2240+
"text": "\"hello\"",
2241+
"kind": "stringLiteral"
22422242
}
22432243
],
22442244
"documentation": []
@@ -2355,8 +2355,8 @@
23552355
"kind": "punctuation"
23562356
},
23572357
{
2358-
"text": "string",
2359-
"kind": "keyword"
2358+
"text": "\"hello\"",
2359+
"kind": "stringLiteral"
23602360
},
23612361
{
23622362
"text": ">",
@@ -2379,8 +2379,8 @@
23792379
"kind": "space"
23802380
},
23812381
{
2382-
"text": "string",
2383-
"kind": "keyword"
2382+
"text": "\"hello\"",
2383+
"kind": "stringLiteral"
23842384
},
23852385
{
23862386
"text": ",",
@@ -2419,8 +2419,8 @@
24192419
"kind": "space"
24202420
},
24212421
{
2422-
"text": "string",
2423-
"kind": "keyword"
2422+
"text": "\"hello\"",
2423+
"kind": "stringLiteral"
24242424
}
24252425
],
24262426
"documentation": []

tests/baselines/reference/quickInfoDisplayPartsVar.baseline

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"marker": {
4-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
4+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
55
"position": 4
66
},
77
"quickInfo": {
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"marker": {
45-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
45+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
4646
"position": 37
4747
},
4848
"quickInfo": {
@@ -91,7 +91,7 @@
9191
},
9292
{
9393
"marker": {
94-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
94+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
9595
"position": 41
9696
},
9797
"quickInfo": {
@@ -132,7 +132,7 @@
132132
},
133133
{
134134
"marker": {
135-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
135+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
136136
"position": 65
137137
},
138138
"quickInfo": {
@@ -173,7 +173,7 @@
173173
},
174174
{
175175
"marker": {
176-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
176+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
177177
"position": 88
178178
},
179179
"quickInfo": {
@@ -222,7 +222,7 @@
222222
},
223223
{
224224
"marker": {
225-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
225+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
226226
"position": 102
227227
},
228228
"quickInfo": {
@@ -283,7 +283,7 @@
283283
},
284284
{
285285
"marker": {
286-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
286+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
287287
"position": 123
288288
},
289289
"quickInfo": {
@@ -344,7 +344,7 @@
344344
},
345345
{
346346
"marker": {
347-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
347+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
348348
"position": 127
349349
},
350350
"quickInfo": {
@@ -405,7 +405,7 @@
405405
},
406406
{
407407
"marker": {
408-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
408+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
409409
"position": 130
410410
},
411411
"quickInfo": {
@@ -466,7 +466,7 @@
466466
},
467467
{
468468
"marker": {
469-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
469+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
470470
"position": 139
471471
},
472472
"quickInfo": {
@@ -611,7 +611,7 @@
611611
},
612612
{
613613
"marker": {
614-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
614+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
615615
"position": 193
616616
},
617617
"quickInfo": {
@@ -756,7 +756,7 @@
756756
},
757757
{
758758
"marker": {
759-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
759+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
760760
"position": 197
761761
},
762762
"quickInfo": {
@@ -901,7 +901,7 @@
901901
},
902902
{
903903
"marker": {
904-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
904+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
905905
"position": 200
906906
},
907907
"quickInfo": {
@@ -1006,7 +1006,7 @@
10061006
},
10071007
{
10081008
"marker": {
1009-
"fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
1009+
"fileName": "/tests/cases/fourslash/quickInfoDisplayPartsVar.ts",
10101010
"position": 207
10111011
},
10121012
"quickInfo": {

tests/cases/fourslash/fourslash.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ declare namespace FourSlashInterface {
166166
goToDefinitionForMarkers(...markerNames: string[]): void;
167167
verifyGetEmitOutputForCurrentFile(expected: string): void;
168168
verifyGetEmitOutputContentsForCurrentFile(expected: ts.OutputFile[]): void;
169-
referencesCountIs(count: number): void;
170169
/**
171170
* Asserts that the given ranges are the references from the current position.
172171
* If ranges have markers, those markers may have "isDefinition" and "isWriteAccess" data

tests/cases/fourslash/getOccurrencesStringLiterals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
const ranges = test.ranges();
77
for (let r of ranges) {
88
goTo.position(r.start);
9-
verify.occurrencesAtPositionCount(0);
9+
verify.occurrencesAtPositionCount(1);
1010
}

tests/cases/fourslash/referencesForIndexProperty2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
////a[/**/"blah"];
77

88
goTo.marker("");
9-
verify.referencesAre([]);
9+
verify.referencesAre(test.ranges());

0 commit comments

Comments
 (0)