@@ -339,7 +339,7 @@ describe('WalkontableTable', function () {
339
339
} ) ;
340
340
341
341
it ( "should remove rows if they were removed in data source" , function ( ) {
342
- this . data . splice ( 8 , this . data . length - 8 ) ; //second param is required by IE7-8
342
+ this . data . splice ( 8 , this . data . length - 8 ) ; //second param is required by IE8
343
343
344
344
var wt = new Walkontable ( {
345
345
table : $table [ 0 ] ,
@@ -353,7 +353,7 @@ describe('WalkontableTable', function () {
353
353
wt . draw ( ) ;
354
354
expect ( $table . find ( 'tbody tr' ) . length ) . toBe ( 8 ) ;
355
355
356
- this . data . splice ( 7 , this . data . length - 7 ) ; //second param is required by IE7-8
356
+ this . data . splice ( 7 , this . data . length - 7 ) ; //second param is required by IE8
357
357
wt . draw ( ) ;
358
358
expect ( $table . find ( 'tbody tr' ) . length ) . toBe ( 7 ) ;
359
359
} ) ;
@@ -415,7 +415,7 @@ describe('WalkontableTable', function () {
415
415
} ) ;
416
416
417
417
it ( "should render all rows if height is null" , function ( ) {
418
- this . data . splice ( 20 , this . data . length - 20 ) ; //second param is required by IE7-8
418
+ this . data . splice ( 20 , this . data . length - 20 ) ; //second param is required by IE8
419
419
420
420
var wt = new Walkontable ( {
421
421
table : $table [ 0 ] ,
@@ -509,10 +509,10 @@ describe('WalkontableTable', function () {
509
509
}
510
510
} ) ;
511
511
wt . draw ( ) ;
512
- expect ( $table . find ( 'tbody tr:first td:eq(0)' ) . outerWidth ( ) ) . toBeInArray ( [ 48 , 50 ] ) ; //IE7 reports 48, other browsers report 50
513
- expect ( $table . find ( 'tbody tr:first td:eq(1)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
514
- expect ( $table . find ( 'tbody tr:first td:eq(2)' ) . outerWidth ( ) ) . toBeInArray ( [ 148 , 150 ] ) ; //IE7 reports 148, other browsers report 150
515
- expect ( $table . find ( 'tbody tr:first td:eq(3)' ) . outerWidth ( ) ) . toBeInArray ( [ 198 , 200 ] ) ; //IE7 reports 198, other browsers report 200
512
+ expect ( $table . find ( 'tbody tr:first td:eq(0)' ) . outerWidth ( ) ) . toBe ( 50 ) ;
513
+ expect ( $table . find ( 'tbody tr:first td:eq(1)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
514
+ expect ( $table . find ( 'tbody tr:first td:eq(2)' ) . outerWidth ( ) ) . toBe ( 150 ) ;
515
+ expect ( $table . find ( 'tbody tr:first td:eq(3)' ) . outerWidth ( ) ) . toBe ( 200 ) ;
516
516
} ) ;
517
517
518
518
it ( "should use column width array to get column width" , function ( ) {
@@ -533,10 +533,10 @@ describe('WalkontableTable', function () {
533
533
columnWidth : [ 50 , 100 , 150 , 200 ]
534
534
} ) ;
535
535
wt . draw ( ) ;
536
- expect ( $table . find ( 'tbody tr:first td:eq(0)' ) . outerWidth ( ) ) . toBeInArray ( [ 48 , 50 ] ) ; //IE7 reports 48, other browsers report 50
537
- expect ( $table . find ( 'tbody tr:first td:eq(1)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
538
- expect ( $table . find ( 'tbody tr:first td:eq(2)' ) . outerWidth ( ) ) . toBeInArray ( [ 148 , 150 ] ) ; //IE7 reports 148, other browsers report 150
539
- expect ( $table . find ( 'tbody tr:first td:eq(3)' ) . outerWidth ( ) ) . toBeInArray ( [ 198 , 200 ] ) ; //IE7 reports 198, other browsers report 200
536
+ expect ( $table . find ( 'tbody tr:first td:eq(0)' ) . outerWidth ( ) ) . toBe ( 50 ) ;
537
+ expect ( $table . find ( 'tbody tr:first td:eq(1)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
538
+ expect ( $table . find ( 'tbody tr:first td:eq(2)' ) . outerWidth ( ) ) . toBe ( 150 ) ;
539
+ expect ( $table . find ( 'tbody tr:first td:eq(3)' ) . outerWidth ( ) ) . toBe ( 200 ) ;
540
540
} ) ;
541
541
542
542
it ( "should use column width integer to get column width" , function ( ) {
@@ -557,10 +557,10 @@ describe('WalkontableTable', function () {
557
557
columnWidth : 100
558
558
} ) ;
559
559
wt . draw ( ) ;
560
- expect ( $table . find ( 'tbody tr:first td:eq(0)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
561
- expect ( $table . find ( 'tbody tr:first td:eq(1)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
562
- expect ( $table . find ( 'tbody tr:first td:eq(2)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
563
- expect ( $table . find ( 'tbody tr:first td:eq(3)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
560
+ expect ( $table . find ( 'tbody tr:first td:eq(0)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
561
+ expect ( $table . find ( 'tbody tr:first td:eq(1)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
562
+ expect ( $table . find ( 'tbody tr:first td:eq(2)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
563
+ expect ( $table . find ( 'tbody tr:first td:eq(3)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
564
564
} ) ;
565
565
566
566
it ( "should use column width also when there are no rows" , function ( ) {
@@ -584,10 +584,10 @@ describe('WalkontableTable', function () {
584
584
} ) ;
585
585
wt . draw ( ) ;
586
586
//start from eq(1) because eq(0) is corner header
587
- expect ( $table . find ( 'thead tr:first th:eq(1)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
588
- expect ( $table . find ( 'thead tr:first th:eq(2)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
589
- expect ( $table . find ( 'thead tr:first th:eq(3)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
590
- expect ( $table . find ( 'thead tr:first th:eq(4)' ) . outerWidth ( ) ) . toBeInArray ( [ 98 , 100 ] ) ; //IE7 reports 98, other browsers report 100
587
+ expect ( $table . find ( 'thead tr:first th:eq(1)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
588
+ expect ( $table . find ( 'thead tr:first th:eq(2)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
589
+ expect ( $table . find ( 'thead tr:first th:eq(3)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
590
+ expect ( $table . find ( 'thead tr:first th:eq(4)' ) . outerWidth ( ) ) . toBe ( 100 ) ;
591
591
} ) ;
592
592
593
593
it ( "should not render a cell that is outside of the viewport horizontally" , function ( ) {
0 commit comments