Skip to content

Commit 1bb23b0

Browse files
committed
Test cleanup
1 parent 62e5b96 commit 1bb23b0

37 files changed

+323
-279
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
languageId: ruby
22
command:
33
version: 5
4-
spokenForm: change list
4+
spokenForm: clear call
55
action: {name: clearAndSetSelection}
66
targets:
77
- type: primitive
88
modifiers:
99
- type: containingScope
10-
scopeType: {type: list}
11-
usePrePhraseSnapshot: false
10+
scopeType: {type: functionCall}
11+
usePrePhraseSnapshot: true
1212
initialState:
13-
documentContents: "[\"hello\"] "
13+
documentContents: |
14+
aaa(bbb())
1415
selections:
15-
- anchor: {line: 0, character: 6}
16+
- anchor: {line: 0, character: 2}
1617
active: {line: 0, character: 6}
1718
marks: {}
1819
finalState:
19-
documentContents: " "
20+
documentContents: |+
21+
2022
selections:
2123
- anchor: {line: 0, character: 0}
2224
active: {line: 0, character: 0}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
languageId: ruby
2+
command:
3+
version: 5
4+
spokenForm: clear call
5+
action: {name: clearAndSetSelection}
6+
targets:
7+
- type: primitive
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: functionCall}
11+
usePrePhraseSnapshot: true
12+
initialState:
13+
documentContents: aaa(bbb(), ccc())
14+
selections:
15+
- anchor: {line: 0, character: 6}
16+
active: {line: 0, character: 13}
17+
marks: {}
18+
finalState:
19+
documentContents: aaa()
20+
selections:
21+
- anchor: {line: 0, character: 4}
22+
active: {line: 0, character: 4}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/ordinalScopes/clearFirstFunk.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/ordinalScopes/clearLastFunk.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList10.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList13.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList14.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList2.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList8.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList9.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
languageId: ruby
22
command:
33
version: 5
4-
spokenForm: change list
4+
spokenForm: clear call
55
action: {name: clearAndSetSelection}
66
targets:
77
- type: primitive
88
modifiers:
99
- type: containingScope
10-
scopeType: {type: list}
11-
usePrePhraseSnapshot: false
10+
scopeType: {type: functionCall}
11+
usePrePhraseSnapshot: true
1212
initialState:
13-
documentContents: "[\"hello\"]"
13+
documentContents: " aaa()"
1414
selections:
15-
- anchor: {line: 0, character: 1}
15+
- anchor: {line: 0, character: 0}
1616
active: {line: 0, character: 1}
1717
marks: {}
18-
finalState:
19-
documentContents: ""
20-
selections:
21-
- anchor: {line: 0, character: 0}
22-
active: {line: 0, character: 0}
18+
thrownError: {name: NoContainingScopeError}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
languageId: ruby
2+
command:
3+
version: 5
4+
spokenForm: clear call
5+
action: {name: clearAndSetSelection}
6+
targets:
7+
- type: primitive
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: functionCall}
11+
usePrePhraseSnapshot: true
12+
initialState:
13+
documentContents: " aaa()"
14+
selections:
15+
- anchor: {line: 0, character: 0}
16+
active: {line: 0, character: 2}
17+
marks: {}
18+
thrownError: {name: NoContainingScopeError}
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
languageId: ruby
22
command:
33
version: 5
4-
spokenForm: change list
4+
spokenForm: clear call
55
action: {name: clearAndSetSelection}
66
targets:
77
- type: primitive
88
modifiers:
99
- type: containingScope
10-
scopeType: {type: list}
11-
usePrePhraseSnapshot: false
10+
scopeType: {type: functionCall}
11+
usePrePhraseSnapshot: true
1212
initialState:
13-
documentContents: "[\"hello\"] "
13+
documentContents: " aaa() "
1414
selections:
15-
- anchor: {line: 0, character: 4}
15+
- anchor: {line: 0, character: 0}
1616
active: {line: 0, character: 7}
1717
marks: {}
18-
finalState:
19-
documentContents: " "
20-
selections:
21-
- anchor: {line: 0, character: 0}
22-
active: {line: 0, character: 0}
18+
thrownError: {name: NoContainingScopeError}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/changeList11.yml renamed to packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/queryBasedMatchers/clearCall14.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
languageId: ruby
22
command:
33
version: 5
4-
spokenForm: change list
4+
spokenForm: clear call
55
action: {name: clearAndSetSelection}
66
targets:
77
- type: primitive
88
modifiers:
99
- type: containingScope
10-
scopeType: {type: list}
11-
usePrePhraseSnapshot: false
10+
scopeType: {type: functionCall}
11+
usePrePhraseSnapshot: true
1212
initialState:
13-
documentContents: "[1, 2, 3, [4, 5, 6, [7, 8, 9]]]"
13+
documentContents: aaa()
1414
selections:
1515
- anchor: {line: 0, character: 5}
1616
active: {line: 0, character: 5}

0 commit comments

Comments
 (0)