@@ -20,10 +20,10 @@ suite('WordPartOperations', () => {
2020 function runEditorCommand ( editor : ICodeEditor , command : EditorCommand ) : void {
2121 command . runEditorCommand ( null , editor , null ) ;
2222 }
23- function moveWordPartLeft ( editor : ICodeEditor , inSelectionmode : boolean = false ) : void {
23+ function cursorWordPartLeft ( editor : ICodeEditor , inSelectionmode : boolean = false ) : void {
2424 runEditorCommand ( editor , inSelectionmode ? _cursorWordPartLeft : _cursorWordPartLeft ) ;
2525 }
26- function moveWordPartRight ( editor : ICodeEditor , inSelectionmode : boolean = false ) : void {
26+ function cursorWordPartRight ( editor : ICodeEditor , inSelectionmode : boolean = false ) : void {
2727 runEditorCommand ( editor , inSelectionmode ? _cursorWordPartLeft : _cursorWordPartRight ) ;
2828 }
2929 function deleteWordPartLeft ( editor : ICodeEditor ) : void {
@@ -33,7 +33,7 @@ suite('WordPartOperations', () => {
3333 runEditorCommand ( editor , _deleteWordPartRight ) ;
3434 }
3535
36- test ( 'move word part left basic' , ( ) => {
36+ test ( 'cursorWordPartLeft - basic' , ( ) => {
3737 const EXPECTED = [
3838 '|start| |line|' ,
3939 '|this|Is|A|Camel|Case|Var| |this|_is|_a|_snake|_case|_var| |THIS|_IS|_CAPS|_SNAKE| |this|_IS|Mixed|Use|' ,
@@ -43,43 +43,43 @@ suite('WordPartOperations', () => {
4343 const actualStops = testRepeatedActionAndExtractPositions (
4444 text ,
4545 new Position ( 1000 , 1000 ) ,
46- ed => moveWordPartLeft ( ed ) ,
46+ ed => cursorWordPartLeft ( ed ) ,
4747 ed => ed . getPosition ( ) ,
4848 ed => ed . getPosition ( ) . equals ( new Position ( 1 , 1 ) )
4949 ) ;
5050 const actual = serializePipePositions ( text , actualStops ) ;
5151 assert . deepEqual ( actual , EXPECTED ) ;
5252 } ) ;
5353
54- test ( 'issue #53899: move word part left whitespace' , ( ) => {
54+ test ( 'cursorWordPartLeft - issue #53899: whitespace' , ( ) => {
5555 const EXPECTED = '|myvar| |=| |\'|demonstration| |of| |selection| |with| |space|\'' ;
5656 const [ text , ] = deserializePipePositions ( EXPECTED ) ;
5757 const actualStops = testRepeatedActionAndExtractPositions (
5858 text ,
5959 new Position ( 1000 , 1000 ) ,
60- ed => moveWordPartLeft ( ed ) ,
60+ ed => cursorWordPartLeft ( ed ) ,
6161 ed => ed . getPosition ( ) ,
6262 ed => ed . getPosition ( ) . equals ( new Position ( 1 , 1 ) )
6363 ) ;
6464 const actual = serializePipePositions ( text , actualStops ) ;
6565 assert . deepEqual ( actual , EXPECTED ) ;
6666 } ) ;
6767
68- test ( 'issue #53899: move word part left underscores' , ( ) => {
68+ test ( 'cursorWordPartLeft - issue #53899: underscores' , ( ) => {
6969 const EXPECTED = '|myvar| |=| |\'|demonstration|_____of| |selection| |with| |space|\'' ;
7070 const [ text , ] = deserializePipePositions ( EXPECTED ) ;
7171 const actualStops = testRepeatedActionAndExtractPositions (
7272 text ,
7373 new Position ( 1000 , 1000 ) ,
74- ed => moveWordPartLeft ( ed ) ,
74+ ed => cursorWordPartLeft ( ed ) ,
7575 ed => ed . getPosition ( ) ,
7676 ed => ed . getPosition ( ) . equals ( new Position ( 1 , 1 ) )
7777 ) ;
7878 const actual = serializePipePositions ( text , actualStops ) ;
7979 assert . deepEqual ( actual , EXPECTED ) ;
8080 } ) ;
8181
82- test ( 'move word part right basic' , ( ) => {
82+ test ( 'cursorWordPartRight - basic' , ( ) => {
8383 const EXPECTED = [
8484 'start| |line|' ,
8585 '|this|Is|A|Camel|Case|Var| |this_|is_|a_|snake_|case_|var| |THIS_|IS_|CAPS_|SNAKE| |this_|IS|Mixed|Use|' ,
@@ -89,43 +89,43 @@ suite('WordPartOperations', () => {
8989 const actualStops = testRepeatedActionAndExtractPositions (
9090 text ,
9191 new Position ( 1 , 1 ) ,
92- ed => moveWordPartRight ( ed ) ,
92+ ed => cursorWordPartRight ( ed ) ,
9393 ed => ed . getPosition ( ) ,
9494 ed => ed . getPosition ( ) . equals ( new Position ( 3 , 9 ) )
9595 ) ;
9696 const actual = serializePipePositions ( text , actualStops ) ;
9797 assert . deepEqual ( actual , EXPECTED ) ;
9898 } ) ;
9999
100- test ( 'issue #53899: move word part right whitespace' , ( ) => {
100+ test ( 'cursorWordPartRight - issue #53899: whitespace' , ( ) => {
101101 const EXPECTED = 'myvar| =| \'demonstration| |of| |selection| |with| |space|\'|' ;
102102 const [ text , ] = deserializePipePositions ( EXPECTED ) ;
103103 const actualStops = testRepeatedActionAndExtractPositions (
104104 text ,
105105 new Position ( 1 , 1 ) ,
106- ed => moveWordPartRight ( ed ) ,
106+ ed => cursorWordPartRight ( ed ) ,
107107 ed => ed . getPosition ( ) ,
108108 ed => ed . getPosition ( ) . equals ( new Position ( 1 , 52 ) )
109109 ) ;
110110 const actual = serializePipePositions ( text , actualStops ) ;
111111 assert . deepEqual ( actual , EXPECTED ) ;
112112 } ) ;
113113
114- test ( 'issue #53899: move word part right underscores' , ( ) => {
114+ test ( 'cursorWordPartRight - issue #53899: underscores' , ( ) => {
115115 const EXPECTED = 'myvar| =| \'demonstration_____|of| |selection| |with| |space|\'|' ;
116116 const [ text , ] = deserializePipePositions ( EXPECTED ) ;
117117 const actualStops = testRepeatedActionAndExtractPositions (
118118 text ,
119119 new Position ( 1 , 1 ) ,
120- ed => moveWordPartRight ( ed ) ,
120+ ed => cursorWordPartRight ( ed ) ,
121121 ed => ed . getPosition ( ) ,
122122 ed => ed . getPosition ( ) . equals ( new Position ( 1 , 52 ) )
123123 ) ;
124124 const actual = serializePipePositions ( text , actualStops ) ;
125125 assert . deepEqual ( actual , EXPECTED ) ;
126126 } ) ;
127127
128- test ( 'delete word part left basic' , ( ) => {
128+ test ( 'deleteWordPartLeft - basic' , ( ) => {
129129 const EXPECTED = '| |/*| |Just| |some| |text| |a|+=| |3| |+|5|-|3| |*/| |this|Is|A|Camel|Case|Var| |this|_is|_a|_snake|_case|_var| |THIS|_IS|_CAPS|_SNAKE| |this|_IS|Mixed|Use' ;
130130 const [ text , ] = deserializePipePositions ( EXPECTED ) ;
131131 const actualStops = testRepeatedActionAndExtractPositions (
@@ -139,7 +139,7 @@ suite('WordPartOperations', () => {
139139 assert . deepEqual ( actual , EXPECTED ) ;
140140 } ) ;
141141
142- test ( 'delete word part right basic' , ( ) => {
142+ test ( 'deleteWordPartRight - basic' , ( ) => {
143143 const EXPECTED = ' |/*| |Just| |some| |text| |a|+=| 3| +|5|-|3| */| |this|Is|A|Camel|Case|Var| |this_|is_|a_|snake_|case_|var| |THIS_|IS_|CAPS_|SNAKE| |this_|IS|Mixed|Use|' ;
144144 const [ text , ] = deserializePipePositions ( EXPECTED ) ;
145145 const actualStops = testRepeatedActionAndExtractPositions (
0 commit comments