@@ -237,13 +237,12 @@ describe('IgxVirtual directive - simple template', () => {
237
237
// scroll to the last right pos
238
238
fix . componentInstance . scrollLeft ( 90000 ) ;
239
239
fix . detectChanges ( ) ;
240
-
241
240
const rowChildren = displayContainer . querySelectorAll ( 'igx-display-container' ) ;
242
241
for ( let i = 0 ; i < rowChildren . length ; i ++ ) {
243
- expect ( rowChildren [ i ] . children . length ) . toBe ( 2 ) ;
244
- expect ( rowChildren [ i ] . children [ 0 ] . textContent )
242
+ expect ( rowChildren [ i ] . children . length ) . toBe ( 7 ) ;
243
+ expect ( rowChildren [ i ] . children [ 5 ] . textContent )
245
244
. toBe ( fix . componentInstance . data [ i ] [ 298 ] . toString ( ) ) ;
246
- expect ( rowChildren [ i ] . children [ 1 ] . textContent )
245
+ expect ( rowChildren [ i ] . children [ 6 ] . textContent )
247
246
. toBe ( fix . componentInstance . data [ i ] [ 299 ] . toString ( ) ) ;
248
247
}
249
248
} ) ;
@@ -264,7 +263,7 @@ describe('IgxVirtual directive - simple template', () => {
264
263
let rows = displayContainer . querySelectorAll ( 'igx-display-container' ) ;
265
264
expect ( rows . length ) . toBe ( 9 ) ;
266
265
for ( let i = 0 ; i < rows . length ; i ++ ) {
267
- expect ( rows [ i ] . children . length ) . toBe ( 4 ) ;
266
+ expect ( rows [ i ] . children . length ) . toBe ( 7 ) ;
268
267
expect ( rows [ i ] . children [ 3 ] . textContent )
269
268
. toBe ( fix . componentInstance . data [ i ] [ 3 ] . toString ( ) ) ;
270
269
}
@@ -276,7 +275,7 @@ describe('IgxVirtual directive - simple template', () => {
276
275
rows = displayContainer . querySelectorAll ( 'igx-display-container' ) ;
277
276
expect ( rows . length ) . toBe ( 9 ) ;
278
277
for ( let i = 0 ; i < rows . length ; i ++ ) {
279
- expect ( rows [ i ] . children . length ) . toBe ( 5 ) ;
278
+ expect ( rows [ i ] . children . length ) . toBe ( 9 ) ;
280
279
expect ( rows [ i ] . children [ 4 ] . textContent )
281
280
. toBe ( fix . componentInstance . data [ i ] [ 4 ] . toString ( ) ) ;
282
281
}
@@ -298,7 +297,7 @@ describe('IgxVirtual directive - simple template', () => {
298
297
let rows = displayContainer . querySelectorAll ( 'igx-display-container' ) ;
299
298
expect ( rows . length ) . toBe ( 9 ) ;
300
299
for ( let i = 0 ; i < rows . length ; i ++ ) {
301
- expect ( rows [ i ] . children . length ) . toBe ( 4 ) ;
300
+ expect ( rows [ i ] . children . length ) . toBe ( 7 ) ;
302
301
expect ( rows [ i ] . children [ 2 ] . textContent )
303
302
. toBe ( fix . componentInstance . data [ i ] [ 2 ] . toString ( ) ) ;
304
303
}
@@ -310,7 +309,7 @@ describe('IgxVirtual directive - simple template', () => {
310
309
rows = displayContainer . querySelectorAll ( 'igx-display-container' ) ;
311
310
expect ( rows . length ) . toBe ( 15 ) ;
312
311
for ( let i = 0 ; i < rows . length ; i ++ ) {
313
- expect ( rows [ i ] . children . length ) . toBe ( 4 ) ;
312
+ expect ( rows [ i ] . children . length ) . toBe ( 7 ) ;
314
313
expect ( rows [ i ] . children [ 2 ] . textContent )
315
314
. toBe ( fix . componentInstance . data [ i ] [ 2 ] . toString ( ) ) ;
316
315
}
@@ -448,7 +447,7 @@ describe('IgxVirtual directive - simple template', () => {
448
447
expect ( fix . componentInstance . isVerticalScrollbarVisible ( ) ) . toBe ( true ) ;
449
448
expect ( fix . componentInstance . isHorizontalScrollbarVisible ( ) ) . toBe ( true ) ;
450
449
expect ( rowsRendered . length ) . toBe ( 9 ) ;
451
- expect ( colsRendered . length ) . toBe ( 4 ) ;
450
+ expect ( colsRendered . length ) . toBe ( 7 ) ;
452
451
453
452
/** Step 1. Scroll to the right. */
454
453
fix . componentInstance . scrollLeft ( 1000 ) ;
@@ -519,7 +518,7 @@ describe('IgxVirtual directive - simple template', () => {
519
518
expect ( fix . componentInstance . isVerticalScrollbarVisible ( ) ) . toBe ( true ) ;
520
519
expect ( fix . componentInstance . isHorizontalScrollbarVisible ( ) ) . toBe ( true ) ;
521
520
expect ( rowsRendered . length ) . toBe ( 9 ) ;
522
- expect ( colsRendered . length ) . toBe ( 4 ) ;
521
+ expect ( colsRendered . length ) . toBe ( 7 ) ;
523
522
524
523
/** Step 1. Lower the amount of cols to 3 so there would be no horizontal scrollbar */
525
524
expect ( ( ) => {
@@ -530,7 +529,6 @@ describe('IgxVirtual directive - simple template', () => {
530
529
fix . componentInstance . scrollTop ( verticalScroller . scrollTop ) ;
531
530
fix . detectChanges ( ) ;
532
531
} ) . not . toThrow ( ) ;
533
-
534
532
rowsRendered = displayContainer . querySelectorAll ( 'igx-display-container' ) ;
535
533
colsRendered = rowsRendered [ 0 ] . children ;
536
534
@@ -573,7 +571,7 @@ describe('IgxVirtual directive - simple template', () => {
573
571
expect ( fix . componentInstance . isVerticalScrollbarVisible ( ) ) . toBe ( true ) ;
574
572
expect ( fix . componentInstance . isHorizontalScrollbarVisible ( ) ) . toBe ( true ) ;
575
573
expect ( rowsRendered . length ) . toBe ( 9 ) ;
576
- expect ( colsRendered . length ) . toBe ( 4 ) ;
574
+ expect ( colsRendered . length ) . toBe ( 7 ) ;
577
575
} ) ;
578
576
579
577
it ( 'should scroll down when using touch events' , ( ) => {
0 commit comments