Skip to content

Commit 6bb83b8

Browse files
committed
Completion template test.
See #480
1 parent 37e7b71 commit 6bb83b8

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

analysis/tests/src/Completion.res

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,14 @@ let _ = _ => {
391391
// ^com
392392
()
393393
}
394+
395+
let red = "#ff0000"
396+
397+
let header1 = `
398+
color: ${red}; `
399+
// ^com
400+
401+
let header2 = `
402+
color: ${red};
403+
background-color: ${red}; `
404+
// ^com

analysis/tests/src/expected/Completion.res.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,3 +1518,30 @@ Completable: Cpath array->ma
15181518
"documentation": null
15191519
}]
15201520

1521+
Complete src/Completion.res 397:14
1522+
posCursor:[397:14] posNoWhite:[397:13] Found expr:[396:14->397:20]
1523+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[396:14->397:16], ...[397:16->397:20])
1524+
posCursor:[397:14] posNoWhite:[397:13] Found expr:[396:14->397:16]
1525+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[396:14->397:13], ...[397:13->397:16])
1526+
posCursor:[397:14] posNoWhite:[397:13] Found expr:[397:13->397:16]
1527+
Pexp_ident red:[397:13->397:16]
1528+
Completable: Cpath Value[red]
1529+
[{
1530+
"label": "red",
1531+
"kind": 12,
1532+
"tags": [],
1533+
"detail": "string",
1534+
"documentation": null
1535+
}]
1536+
1537+
Complete src/Completion.res 402:22
1538+
posCursor:[402:22] posNoWhite:[402:20] Found expr:[400:14->402:31]
1539+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[401:16->402:27], ...[402:27->402:31])
1540+
posCursor:[402:22] posNoWhite:[402:20] Found expr:[401:16->402:27]
1541+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[401:16->402:27], ...[402:24->402:27])
1542+
posCursor:[402:22] posNoWhite:[402:20] Found expr:[401:16->402:27]
1543+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->401:16], ...[401:16->402:24])
1544+
posCursor:[402:22] posNoWhite:[402:20] Found expr:[401:16->402:24]
1545+
Completable: Cnone
1546+
[]
1547+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
DCE src/Dce.res
2-
issues:233
2+
issues:235
33

0 commit comments

Comments
 (0)