@@ -326,59 +326,6 @@ describe('IgxSimpleCombo', () => {
326
326
const comboData = combo . data ;
327
327
expect ( comboData ) . toEqual ( data ) ;
328
328
} ) ;
329
- it ( 'should bind combo data to remote service data' , ( async ( ) => {
330
- let productIndex = 0 ;
331
- fixture = TestBed . createComponent ( IgxComboRemoteDataComponent ) ;
332
- fixture . detectChanges ( ) ;
333
- combo = fixture . componentInstance . instance ;
334
-
335
- const verifyComboData = ( ) => {
336
- fixture . detectChanges ( ) ;
337
- let ind = combo . virtualScrollContainer . state . startIndex ;
338
- for ( let itemIndex = 0 ; itemIndex < 10 ; itemIndex ++ ) {
339
- expect ( combo . data [ itemIndex ] . id ) . toEqual ( ind ) ;
340
- expect ( combo . data [ itemIndex ] . product ) . toEqual ( 'Product ' + ind ) ;
341
- const dropdownList = fixture . debugElement . query ( By . css ( `.${ CSS_CLASS_DROPDOWNLIST_SCROLL } ` ) ) . nativeElement ;
342
- const dropdownItems = dropdownList . querySelectorAll ( `.${ CSS_CLASS_DROPDOWNLISTITEM } ` ) ;
343
- expect ( dropdownItems [ itemIndex ] . innerText . trim ( ) ) . toEqual ( 'Product ' + ind ) ;
344
- ind ++ ;
345
- }
346
- } ;
347
-
348
- combo . toggle ( ) ;
349
- fixture . detectChanges ( ) ;
350
- verifyComboData ( ) ;
351
- expect ( combo . virtualizationState . startIndex ) . toEqual ( productIndex ) ;
352
-
353
- productIndex = 42 ;
354
- combo . virtualScrollContainer . scrollTo ( productIndex ) ;
355
- await wait ( 100 ) ;
356
- fixture . detectChanges ( ) ;
357
- verifyComboData ( ) ;
358
- // index is at bottom
359
- expect ( combo . virtualizationState . startIndex + combo . virtualizationState . chunkSize - 1 )
360
- . toEqual ( productIndex ) ;
361
-
362
- productIndex = 485 ;
363
- combo . virtualScrollContainer . scrollTo ( productIndex ) ;
364
- await wait ( 100 ) ;
365
- fixture . detectChanges ( ) ;
366
- verifyComboData ( ) ;
367
- expect ( combo . virtualizationState . startIndex + combo . virtualizationState . chunkSize - 1 )
368
- . toEqual ( productIndex ) ;
369
-
370
- productIndex = 873 ;
371
- combo . virtualScrollContainer . scrollTo ( productIndex ) ;
372
- await wait ( 100 ) ;
373
- fixture . detectChanges ( ) ;
374
- verifyComboData ( ) ;
375
-
376
- productIndex = 649 ;
377
- combo . virtualScrollContainer . scrollTo ( productIndex ) ;
378
- await wait ( 100 ) ;
379
- fixture . detectChanges ( ) ;
380
- verifyComboData ( ) ;
381
- } ) ) ;
382
329
it ( 'should render empty template when combo data source is not set' , ( ) => {
383
330
fixture = TestBed . createComponent ( IgxComboInContainerTestComponent ) ;
384
331
fixture . detectChanges ( ) ;
0 commit comments