Skip to content

Commit 666c592

Browse files
authored
Upgrade test fixtures to v5 (#2433)
- Fixes #2282 - There are two commits. The second one is just mechanical. See the first one (de4c858), though, which canonicalizes the ordering of command fields, because we had annoying re-ordering ## 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 9cedee8 commit 666c592

File tree

2,303 files changed

+11261
-6845
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,303 files changed

+11261
-6845
lines changed

data/fixtures/recorded/actions/_bringLineHarpAndWhale.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
languageId: plaintext
22
command:
3-
version: 1
3+
version: 5
44
spokenForm: bring line harp and whale
5-
action: replaceWithTarget
5+
action: {name: replaceWithTarget}
66
targets:
77
- type: list
88
elements:
99
- type: primitive
10-
selectionType: line
10+
modifiers:
11+
- type: containingScope
12+
scopeType: {type: line}
1113
mark: {type: decoratedSymbol, symbolColor: default, character: h}
1214
- type: primitive
1315
mark: {type: decoratedSymbol, symbolColor: default, character: w}
14-
- {type: primitive, isImplicit: true}
16+
- {type: implicit}
17+
usePrePhraseSnapshot: false
1518
initialState:
1619
documentContents: |+
1720
hello

data/fixtures/recorded/actions/alternateHighlightHarp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
languageId: plaintext
22
command:
3-
version: 4
3+
version: 5
44
spokenForm: alternate highlight harp
55
action:
66
name: highlight

data/fixtures/recorded/actions/bringAirAndBatAndCap.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
languageId: typescript
22
command:
3-
version: 1
3+
version: 5
44
spokenForm: bring air and bat and cap
5-
action: replaceWithTarget
5+
action: {name: replaceWithTarget}
66
targets:
77
- type: list
88
elements:
@@ -12,7 +12,8 @@ command:
1212
mark: {type: decoratedSymbol, symbolColor: default, character: b}
1313
- type: primitive
1414
mark: {type: decoratedSymbol, symbolColor: default, character: c}
15-
- {type: primitive, isImplicit: true}
15+
- {type: implicit}
16+
usePrePhraseSnapshot: false
1617
initialState:
1718
documentContents: |+
1819
a

data/fixtures/recorded/actions/bringAirAndBatAndCapToAfterDrum.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
languageId: typescript
22
command:
3-
version: 1
3+
version: 5
44
spokenForm: bring air and bat and cap after drum
5-
action: replaceWithTarget
5+
action: {name: replaceWithTarget}
66
targets:
77
- type: list
88
elements:
@@ -13,8 +13,10 @@ command:
1313
- type: primitive
1414
mark: {type: decoratedSymbol, symbolColor: default, character: c}
1515
- type: primitive
16-
position: after
16+
modifiers:
17+
- {type: position, position: after}
1718
mark: {type: decoratedSymbol, symbolColor: default, character: d}
19+
usePrePhraseSnapshot: false
1820
initialState:
1921
documentContents: |
2022
a

data/fixtures/recorded/actions/bringAirAndBatAndCapToAfterItemEach.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
languageId: typescript
22
command:
3-
version: 1
3+
version: 5
44
spokenForm: bring air and bat and cap after item each
5-
action: replaceWithTarget
5+
action: {name: replaceWithTarget}
66
targets:
77
- type: list
88
elements:
@@ -13,9 +13,12 @@ command:
1313
- type: primitive
1414
mark: {type: decoratedSymbol, symbolColor: default, character: c}
1515
- type: primitive
16-
position: after
17-
modifier: {type: containingScope, scopeType: collectionItem, includeSiblings: false}
16+
modifiers:
17+
- {type: position, position: after}
18+
- type: containingScope
19+
scopeType: {type: collectionItem}
1820
mark: {type: decoratedSymbol, symbolColor: default, character: e}
21+
usePrePhraseSnapshot: false
1922
initialState:
2023
documentContents: |
2124
a

data/fixtures/recorded/actions/bringAirAndBatAndCapToBeforeDrum.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
languageId: typescript
22
command:
3-
version: 1
3+
version: 5
44
spokenForm: bring air and bat and cap before drum
5-
action: replaceWithTarget
5+
action: {name: replaceWithTarget}
66
targets:
77
- type: list
88
elements:
@@ -13,8 +13,10 @@ command:
1313
- type: primitive
1414
mark: {type: decoratedSymbol, symbolColor: default, character: c}
1515
- type: primitive
16-
position: before
16+
modifiers:
17+
- {type: position, position: before}
1718
mark: {type: decoratedSymbol, symbolColor: default, character: d}
19+
usePrePhraseSnapshot: false
1820
initialState:
1921
documentContents: |
2022
a

data/fixtures/recorded/actions/bringAirAndBatAndCapToBeforeItemEach.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
languageId: typescript
22
command:
3-
version: 1
3+
version: 5
44
spokenForm: bring air and bat and cap before item each
5-
action: replaceWithTarget
5+
action: {name: replaceWithTarget}
66
targets:
77
- type: list
88
elements:
@@ -13,9 +13,12 @@ command:
1313
- type: primitive
1414
mark: {type: decoratedSymbol, symbolColor: default, character: c}
1515
- type: primitive
16-
position: before
17-
modifier: {type: containingScope, scopeType: collectionItem, includeSiblings: false}
16+
modifiers:
17+
- {type: position, position: before}
18+
- type: containingScope
19+
scopeType: {type: collectionItem}
1820
mark: {type: decoratedSymbol, symbolColor: default, character: e}
21+
usePrePhraseSnapshot: false
1922
initialState:
2023
documentContents: |
2124
a

data/fixtures/recorded/actions/bringArgMadeAfterLook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
languageId: typescript
22
command:
3+
version: 5
34
spokenForm: bring arg made after look
4-
version: 2
5+
action: {name: replaceWithTarget}
56
targets:
67
- type: primitive
78
mark: {type: decoratedSymbol, symbolColor: default, character: m}
@@ -13,7 +14,6 @@ command:
1314
modifiers:
1415
- {type: position, position: after}
1516
usePrePhraseSnapshot: true
16-
action: {name: replaceWithTarget}
1717
initialState:
1818
documentContents: |-
1919
function myFunk(

data/fixtures/recorded/actions/bringArgMadeAfterVest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
languageId: typescript
22
command:
3+
version: 5
34
spokenForm: bring arg made after vest
4-
version: 2
5+
action: {name: replaceWithTarget}
56
targets:
67
- type: primitive
78
mark: {type: decoratedSymbol, symbolColor: default, character: m}
@@ -13,7 +14,6 @@ command:
1314
modifiers:
1415
- {type: position, position: after}
1516
usePrePhraseSnapshot: true
16-
action: {name: replaceWithTarget}
1717
initialState:
1818
documentContents: |-
1919
function myFunk(

data/fixtures/recorded/actions/bringArgWhaleBeforeLook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
languageId: typescript
22
command:
3+
version: 5
34
spokenForm: bring arg whale before look
4-
version: 2
5+
action: {name: replaceWithTarget}
56
targets:
67
- type: primitive
78
mark: {type: decoratedSymbol, symbolColor: default, character: w}
@@ -13,7 +14,6 @@ command:
1314
modifiers:
1415
- {type: position, position: before}
1516
usePrePhraseSnapshot: true
16-
action: {name: replaceWithTarget}
1717
initialState:
1818
documentContents: |-
1919
function myFunk(

0 commit comments

Comments
 (0)