Skip to content

Commit a0e668f

Browse files
authored
Upgrade test fixtures to v6 (#2559)
As per https://www.cursorless.org/docs/contributing/test-case-recorder/#partially-upgrading-fixtures ``` pnpm transform-recorded-tests --upgrade --minimum-version 6 ``` Now that they're more than a year old, we can upgrade test fixtures so they know about destinations If merge conflicts with #2457 are going to be annoying, we can hold off until then to merge ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet
1 parent 30fec0f commit a0e668f

File tree

2,655 files changed

+14995
-12124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,655 files changed

+14995
-12124
lines changed

data/fixtures/recorded/actions/_bringLineHarpAndWhale.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
languageId: plaintext
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring line harp and whale
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: list
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
89
elements:
910
- type: primitive
1011
modifiers:
@@ -13,7 +14,7 @@ command:
1314
mark: {type: decoratedSymbol, symbolColor: default, character: h}
1415
- type: primitive
1516
mark: {type: decoratedSymbol, symbolColor: default, character: w}
16-
- {type: implicit}
17+
destination: {type: implicit}
1718
usePrePhraseSnapshot: false
1819
initialState:
1920
documentContents: |+

data/fixtures/recorded/actions/alternateHighlightHarp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
languageId: plaintext
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: alternate highlight harp
55
action:
66
name: highlight
7-
args: [highlight1]
8-
targets:
9-
- type: primitive
7+
target:
8+
type: primitive
109
mark: {type: decoratedSymbol, symbolColor: default, character: h}
10+
highlightId: highlight1
1111
usePrePhraseSnapshot: true
1212
spokenFormError: highlight.highlightId
1313
initialState:

data/fixtures/recorded/actions/bringAirAfterAir.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
languageId: plaintext
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air after air
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: primitive
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: primitive
89
mark: {type: decoratedSymbol, symbolColor: default, character: a}
9-
- type: primitive
10-
mark: {type: decoratedSymbol, symbolColor: default, character: a}
11-
modifiers:
12-
- {type: position, position: after}
10+
destination:
11+
type: primitive
12+
insertionMode: after
13+
target:
14+
type: primitive
15+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1316
usePrePhraseSnapshot: true
1417
initialState:
1518
documentContents: a

data/fixtures/recorded/actions/bringAirAndBatAndCap.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
languageId: typescript
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air and bat and cap
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: list
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
89
elements:
910
- type: primitive
1011
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1112
- type: primitive
1213
mark: {type: decoratedSymbol, symbolColor: default, character: b}
1314
- type: primitive
1415
mark: {type: decoratedSymbol, symbolColor: default, character: c}
15-
- {type: implicit}
16+
destination: {type: implicit}
1617
usePrePhraseSnapshot: false
1718
initialState:
1819
documentContents: |+

data/fixtures/recorded/actions/bringAirAndBatAndCapToAfterDrum.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
languageId: typescript
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air and bat and cap after drum
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: list
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
89
elements:
910
- type: primitive
1011
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1112
- type: primitive
1213
mark: {type: decoratedSymbol, symbolColor: default, character: b}
1314
- type: primitive
1415
mark: {type: decoratedSymbol, symbolColor: default, character: c}
15-
- type: primitive
16-
modifiers:
17-
- {type: position, position: after}
18-
mark: {type: decoratedSymbol, symbolColor: default, character: d}
16+
destination:
17+
type: primitive
18+
insertionMode: after
19+
target:
20+
type: primitive
21+
mark: {type: decoratedSymbol, symbolColor: default, character: d}
1922
usePrePhraseSnapshot: false
2023
initialState:
2124
documentContents: |

data/fixtures/recorded/actions/bringAirAndBatAndCapToAfterItemEach.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
languageId: typescript
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air and bat and cap after item each
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: list
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
89
elements:
910
- type: primitive
1011
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1112
- type: primitive
1213
mark: {type: decoratedSymbol, symbolColor: default, character: b}
1314
- type: primitive
1415
mark: {type: decoratedSymbol, symbolColor: default, character: c}
15-
- type: primitive
16-
modifiers:
17-
- {type: position, position: after}
18-
- type: containingScope
19-
scopeType: {type: collectionItem}
20-
mark: {type: decoratedSymbol, symbolColor: default, character: e}
16+
destination:
17+
type: primitive
18+
insertionMode: after
19+
target:
20+
type: primitive
21+
modifiers:
22+
- type: containingScope
23+
scopeType: {type: collectionItem}
24+
mark: {type: decoratedSymbol, symbolColor: default, character: e}
2125
usePrePhraseSnapshot: false
2226
initialState:
2327
documentContents: |

data/fixtures/recorded/actions/bringAirAndBatAndCapToBeforeDrum.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
languageId: typescript
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air and bat and cap before drum
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: list
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
89
elements:
910
- type: primitive
1011
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1112
- type: primitive
1213
mark: {type: decoratedSymbol, symbolColor: default, character: b}
1314
- type: primitive
1415
mark: {type: decoratedSymbol, symbolColor: default, character: c}
15-
- type: primitive
16-
modifiers:
17-
- {type: position, position: before}
18-
mark: {type: decoratedSymbol, symbolColor: default, character: d}
16+
destination:
17+
type: primitive
18+
insertionMode: before
19+
target:
20+
type: primitive
21+
mark: {type: decoratedSymbol, symbolColor: default, character: d}
1922
usePrePhraseSnapshot: false
2023
initialState:
2124
documentContents: |

data/fixtures/recorded/actions/bringAirAndBatAndCapToBeforeItemEach.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
languageId: typescript
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air and bat and cap before item each
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: list
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
89
elements:
910
- type: primitive
1011
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1112
- type: primitive
1213
mark: {type: decoratedSymbol, symbolColor: default, character: b}
1314
- type: primitive
1415
mark: {type: decoratedSymbol, symbolColor: default, character: c}
15-
- type: primitive
16-
modifiers:
17-
- {type: position, position: before}
18-
- type: containingScope
19-
scopeType: {type: collectionItem}
20-
mark: {type: decoratedSymbol, symbolColor: default, character: e}
16+
destination:
17+
type: primitive
18+
insertionMode: before
19+
target:
20+
type: primitive
21+
modifiers:
22+
- type: containingScope
23+
scopeType: {type: collectionItem}
24+
mark: {type: decoratedSymbol, symbolColor: default, character: e}
2125
usePrePhraseSnapshot: false
2226
initialState:
2327
documentContents: |

data/fixtures/recorded/actions/bringAirBeforeAir.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
languageId: plaintext
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air before air
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: primitive
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: primitive
89
mark: {type: decoratedSymbol, symbolColor: default, character: a}
9-
- type: primitive
10-
mark: {type: decoratedSymbol, symbolColor: default, character: a}
11-
modifiers:
12-
- {type: position, position: before}
10+
destination:
11+
type: primitive
12+
insertionMode: before
13+
target:
14+
type: primitive
15+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1316
usePrePhraseSnapshot: true
1417
initialState:
1518
documentContents: a

data/fixtures/recorded/actions/bringAirToEndOfAir.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
languageId: plaintext
22
command:
3-
version: 5
3+
version: 6
44
spokenForm: bring air to end of air
5-
action: {name: replaceWithTarget}
6-
targets:
7-
- type: primitive
8-
mark: {type: decoratedSymbol, symbolColor: default, character: a}
9-
- type: primitive
10-
modifiers:
11-
- {type: position, position: end}
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: primitive
129
mark: {type: decoratedSymbol, symbolColor: default, character: a}
10+
destination:
11+
type: primitive
12+
insertionMode: to
13+
target:
14+
type: primitive
15+
modifiers:
16+
- {type: endOf}
17+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
1318
usePrePhraseSnapshot: true
1419
initialState:
1520
documentContents: a

0 commit comments

Comments
 (0)