@@ -13,7 +13,7 @@ import { Selection } from 'vs/editor/common/core/selection';
1313import { Range } from 'vs/editor/common/core/range' ;
1414import { ICommonCodeEditor } from 'vs/editor/common/editorCommon' ;
1515import { CommonFindController , FindStartFocusAction , IFindStartOptions , NextMatchFindAction , StartFindAction } from 'vs/editor/contrib/find/common/findController' ;
16- import { withMockCodeEditor } from 'vs/editor/test/browser/testCodeEditor' ;
16+ import { withTestCodeEditor } from 'vs/editor/test/browser/testCodeEditor' ;
1717import { HistoryNavigator } from 'vs/base/common/history' ;
1818import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey' ;
1919import { IStorageService } from 'vs/platform/storage/common/storage' ;
@@ -78,7 +78,7 @@ suite('FindController', () => {
7878 } as IStorageService ) ;
7979
8080 test ( 'issue #1857: F3, Find Next, acts like "Find Under Cursor"' , ( ) => {
81- withMockCodeEditor ( [
81+ withTestCodeEditor ( [
8282 'ABC' ,
8383 'ABC' ,
8484 'XYZ' ,
@@ -136,7 +136,7 @@ suite('FindController', () => {
136136 } ) ;
137137
138138 test ( 'issue #3090: F3 does not loop with two matches on a single line' , ( ) => {
139- withMockCodeEditor ( [
139+ withTestCodeEditor ( [
140140 'import nls = require(\'vs/nls\');'
141141 ] , { serviceCollection : serviceCollection } , ( editor , cursor ) => {
142142
@@ -159,7 +159,7 @@ suite('FindController', () => {
159159 } ) ;
160160
161161 test ( 'issue #6149: Auto-escape highlighted text for search and replace regex mode' , ( ) => {
162- withMockCodeEditor ( [
162+ withTestCodeEditor ( [
163163 'var x = (3 * 5)' ,
164164 'var y = (3 * 5)' ,
165165 'var z = (3 * 5)' ,
@@ -185,7 +185,7 @@ suite('FindController', () => {
185185 } ) ;
186186
187187 test ( 'issue #9043: Clear search scope when find widget is hidden' , ( ) => {
188- withMockCodeEditor ( [
188+ withTestCodeEditor ( [
189189 'var x = (3 * 5)' ,
190190 'var y = (3 * 5)' ,
191191 'var z = (3 * 5)' ,
@@ -213,7 +213,7 @@ suite('FindController', () => {
213213 } ) ;
214214
215215 test ( 'find term is added to history on state change' , ( ) => {
216- withMockCodeEditor ( [
216+ withTestCodeEditor ( [
217217 'var x = (3 * 5)' ,
218218 'var y = (3 * 5)' ,
219219 'var z = (3 * 5)' ,
@@ -229,7 +229,7 @@ suite('FindController', () => {
229229 } ) ;
230230
231231 test ( 'find term is added with delay' , ( done ) => {
232- withMockCodeEditor ( [
232+ withTestCodeEditor ( [
233233 'var x = (3 * 5)' ,
234234 'var y = (3 * 5)' ,
235235 'var z = (3 * 5)' ,
@@ -249,7 +249,7 @@ suite('FindController', () => {
249249 } ) ;
250250
251251 test ( 'show previous find term' , ( ) => {
252- withMockCodeEditor ( [
252+ withTestCodeEditor ( [
253253 'var x = (3 * 5)' ,
254254 'var y = (3 * 5)' ,
255255 'var z = (3 * 5)' ,
@@ -266,7 +266,7 @@ suite('FindController', () => {
266266 } ) ;
267267
268268 test ( 'show previous find term do not update history' , ( ) => {
269- withMockCodeEditor ( [
269+ withTestCodeEditor ( [
270270 'var x = (3 * 5)' ,
271271 'var y = (3 * 5)' ,
272272 'var z = (3 * 5)' ,
@@ -283,7 +283,7 @@ suite('FindController', () => {
283283 } ) ;
284284
285285 test ( 'show next find term' , ( ) => {
286- withMockCodeEditor ( [
286+ withTestCodeEditor ( [
287287 'var x = (3 * 5)' ,
288288 'var y = (3 * 5)' ,
289289 'var z = (3 * 5)' ,
@@ -303,7 +303,7 @@ suite('FindController', () => {
303303 } ) ;
304304
305305 test ( 'show next find term do not update history' , ( ) => {
306- withMockCodeEditor ( [
306+ withTestCodeEditor ( [
307307 'var x = (3 * 5)' ,
308308 'var y = (3 * 5)' ,
309309 'var z = (3 * 5)' ,
@@ -323,7 +323,7 @@ suite('FindController', () => {
323323 } ) ;
324324
325325 test ( 'issue #18111: Regex replace with single space replaces with no space' , ( ) => {
326- withMockCodeEditor ( [
326+ withTestCodeEditor ( [
327327 'HRESULT OnAmbientPropertyChange(DISPID dispid);'
328328 ] , { serviceCollection : serviceCollection } , ( editor , cursor ) => {
329329
@@ -348,7 +348,7 @@ suite('FindController', () => {
348348 } ) ;
349349
350350 test ( 'issue #24714: Regular expression with ^ in search & replace' , ( ) => {
351- withMockCodeEditor ( [
351+ withTestCodeEditor ( [
352352 '' ,
353353 'line2' ,
354354 'line3'
@@ -399,7 +399,7 @@ suite('FindController query options persistence', () => {
399399 } as IStorageService ) ;
400400
401401 test ( 'matchCase' , ( ) => {
402- withMockCodeEditor ( [
402+ withTestCodeEditor ( [
403403 'abc' ,
404404 'ABC' ,
405405 'XYZ' ,
@@ -426,7 +426,7 @@ suite('FindController query options persistence', () => {
426426 queryState = { 'editor.isRegex' : false , 'editor.matchCase' : false , 'editor.wholeWord' : true } ;
427427
428428 test ( 'wholeWord' , ( ) => {
429- withMockCodeEditor ( [
429+ withTestCodeEditor ( [
430430 'ABC' ,
431431 'AB' ,
432432 'XYZ' ,
@@ -451,7 +451,7 @@ suite('FindController query options persistence', () => {
451451 } ) ;
452452
453453 test ( 'toggling options is saved' , ( ) => {
454- withMockCodeEditor ( [
454+ withTestCodeEditor ( [
455455 'ABC' ,
456456 'AB' ,
457457 'XYZ' ,
0 commit comments