@@ -8,7 +8,7 @@ var attributes = require('@src/traces/parcoords/attributes');
8
8
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
9
9
var delay = require ( '../assets/delay' ) ;
10
10
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
11
- var fail = require ( '../assets/fail_test' ) ;
11
+ var failTest = require ( '../assets/fail_test' ) ;
12
12
var mouseEvent = require ( '../assets/mouse_event' ) ;
13
13
var supplyAllDefaults = require ( '../assets/supply_defaults' ) ;
14
14
@@ -318,7 +318,7 @@ describe('@gl parcoords', function() {
318
318
expect ( gd . data [ 0 ] . dimensions [ 1 ] . range ) . toEqual ( [ 0 , 700000 ] ) ;
319
319
expect ( gd . data [ 0 ] . dimensions [ 1 ] . constraintrange ) . not . toBeDefined ( ) ;
320
320
} )
321
- . catch ( fail )
321
+ . catch ( failTest )
322
322
. then ( done ) ;
323
323
} ) ;
324
324
@@ -337,7 +337,7 @@ describe('@gl parcoords', function() {
337
337
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toBeDefined ( ) ;
338
338
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toEqual ( [ 200 , 700 ] ) ;
339
339
} )
340
- . catch ( fail )
340
+ . catch ( failTest )
341
341
. then ( done ) ;
342
342
} ) ;
343
343
@@ -352,7 +352,7 @@ describe('@gl parcoords', function() {
352
352
expect ( gd . data [ 0 ] . dimensions . length ) . toEqual ( 0 ) ;
353
353
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 0 ) ;
354
354
} )
355
- . catch ( fail )
355
+ . catch ( failTest )
356
356
. then ( done ) ;
357
357
} ) ;
358
358
@@ -370,7 +370,7 @@ describe('@gl parcoords', function() {
370
370
expect ( gd . data [ 0 ] . dimensions . length ) . toEqual ( 2 ) ;
371
371
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 2 ) ;
372
372
} )
373
- . catch ( fail )
373
+ . catch ( failTest )
374
374
. then ( done ) ;
375
375
} ) ;
376
376
@@ -398,7 +398,7 @@ describe('@gl parcoords', function() {
398
398
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 2 ) ;
399
399
expect ( gd . data [ 0 ] . dimensions [ 0 ] . values . length ) . toEqual ( 1 ) ;
400
400
} )
401
- . catch ( fail )
401
+ . catch ( failTest )
402
402
. then ( done ) ;
403
403
} ) ;
404
404
@@ -423,7 +423,7 @@ describe('@gl parcoords', function() {
423
423
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 0 ) ;
424
424
expect ( gd . data [ 0 ] . dimensions [ 0 ] . values . length ) . toEqual ( 0 ) ;
425
425
} )
426
- . catch ( fail )
426
+ . catch ( failTest )
427
427
. then ( done ) ;
428
428
} ) ;
429
429
@@ -452,7 +452,7 @@ describe('@gl parcoords', function() {
452
452
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 2 ) ;
453
453
expect ( gd . data [ 0 ] . dimensions [ 0 ] . values . length ) . toEqual ( values [ 0 ] . length ) ;
454
454
} )
455
- . catch ( fail )
455
+ . catch ( failTest )
456
456
. then ( done ) ;
457
457
} ) ;
458
458
@@ -483,7 +483,7 @@ describe('@gl parcoords', function() {
483
483
expect ( gd . data [ 0 ] . dimensions . length ) . toEqual ( 60 ) ;
484
484
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 60 ) ;
485
485
} )
486
- . catch ( fail )
486
+ . catch ( failTest )
487
487
. then ( done ) ;
488
488
} ) ;
489
489
@@ -512,7 +512,7 @@ describe('@gl parcoords', function() {
512
512
expect ( gd . data [ 0 ] . dimensions . length ) . toEqual ( 60 ) ;
513
513
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 60 ) ;
514
514
} )
515
- . catch ( fail )
515
+ . catch ( failTest )
516
516
. then ( done ) ;
517
517
} ) ;
518
518
@@ -542,7 +542,7 @@ describe('@gl parcoords', function() {
542
542
expect ( gd . data [ 0 ] . dimensions . length ) . toEqual ( 60 ) ;
543
543
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 60 ) ;
544
544
} )
545
- . catch ( fail )
545
+ . catch ( failTest )
546
546
. then ( done ) ;
547
547
} ) ;
548
548
@@ -576,7 +576,7 @@ describe('@gl parcoords', function() {
576
576
expect ( gd . data [ 0 ] . dimensions . length ) . toEqual ( 5 ) ; // it's still five, but ...
577
577
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 3 ) ; // only 3 axes shown
578
578
} )
579
- . catch ( fail )
579
+ . catch ( failTest )
580
580
. then ( done ) ;
581
581
} ) ;
582
582
@@ -595,7 +595,7 @@ describe('@gl parcoords', function() {
595
595
} ;
596
596
gd = createGraphDiv ( ) ;
597
597
Plotly . plot ( gd , mockCopy . data , mockCopy . layout )
598
- . catch ( fail )
598
+ . catch ( failTest )
599
599
. then ( done ) ;
600
600
} ) ;
601
601
@@ -642,7 +642,7 @@ describe('@gl parcoords', function() {
642
642
643
643
expect ( document . querySelectorAll ( '.axis' ) . length ) . toEqual ( 20 ) ; // one dimension is `visible: false`
644
644
} )
645
- . catch ( fail )
645
+ . catch ( failTest )
646
646
. then ( done ) ;
647
647
648
648
} ) ;
@@ -662,7 +662,7 @@ describe('@gl parcoords', function() {
662
662
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toEqual ( [ 100000 , 150000 ] ) ;
663
663
expect ( gd . data [ 0 ] . dimensions [ 1 ] . constraintrange ) . not . toBeDefined ( ) ;
664
664
} )
665
- . catch ( fail )
665
+ . catch ( failTest )
666
666
. then ( done ) ;
667
667
668
668
} ) ;
@@ -689,7 +689,7 @@ describe('@gl parcoords', function() {
689
689
. then ( restyleDimension ( 'constraintrange' , [ [ 0 , 1 ] ] ) )
690
690
. then ( restyleDimension ( 'values' , [ [ 0 , 0.1 , 0.4 , 1 , 2 , 0 , 0.1 , 0.4 , 1 , 2 ] ] ) )
691
691
. then ( restyleDimension ( 'visible' , false ) )
692
- . catch ( fail )
692
+ . catch ( failTest )
693
693
. then ( done ) ;
694
694
} ) ;
695
695
@@ -711,7 +711,7 @@ describe('@gl parcoords', function() {
711
711
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toEqual ( [ 100000 , 150000 ] ) ;
712
712
expect ( gd . data [ 0 ] . dimensions [ 1 ] . constraintrange ) . not . toBeDefined ( ) ;
713
713
} )
714
- . catch ( fail )
714
+ . catch ( failTest )
715
715
. then ( done ) ;
716
716
} ) ;
717
717
@@ -736,7 +736,7 @@ describe('@gl parcoords', function() {
736
736
. then ( function ( ) {
737
737
expect ( tester . get ( ) ) . toBe ( true ) ;
738
738
} )
739
- . catch ( fail )
739
+ . catch ( failTest )
740
740
. then ( done ) ;
741
741
742
742
} ) ;
@@ -785,7 +785,7 @@ describe('@gl parcoords', function() {
785
785
786
786
} , 20 ) ;
787
787
} )
788
- . catch ( fail )
788
+ . catch ( failTest )
789
789
. then ( done ) ;
790
790
791
791
} ) ;
@@ -806,7 +806,7 @@ describe('@gl parcoords', function() {
806
806
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toEqual ( [ 100000 , 150000 ] ) ;
807
807
expect ( gd . data [ 0 ] . dimensions [ 1 ] . constraintrange ) . not . toBeDefined ( ) ;
808
808
} )
809
- . catch ( fail )
809
+ . catch ( failTest )
810
810
. then ( done ) ;
811
811
} ) ;
812
812
@@ -826,7 +826,7 @@ describe('@gl parcoords', function() {
826
826
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toEqual ( [ 100000 , 150000 ] ) ;
827
827
expect ( gd . data [ 0 ] . dimensions [ 1 ] . constraintrange ) . not . toBeDefined ( ) ;
828
828
} )
829
- . catch ( fail )
829
+ . catch ( failTest )
830
830
. then ( done ) ;
831
831
} ) ;
832
832
@@ -865,7 +865,7 @@ describe('@gl parcoords', function() {
865
865
values : [ 1 , 4 ]
866
866
} ) ;
867
867
} )
868
- . catch ( fail )
868
+ . catch ( failTest )
869
869
. then ( done ) ;
870
870
} ) ;
871
871
} ) ;
@@ -888,7 +888,7 @@ describe('@gl parcoords', function() {
888
888
expect ( gd . data . length ) . toEqual ( 0 ) ;
889
889
} ) ;
890
890
} )
891
- . catch ( fail )
891
+ . catch ( failTest )
892
892
. then ( done ) ;
893
893
} ) ;
894
894
@@ -922,7 +922,7 @@ describe('@gl parcoords', function() {
922
922
expect ( document . querySelectorAll ( '.y-axis' ) . length ) . toEqual ( 0 ) ;
923
923
expect ( gd . data . length ) . toEqual ( 0 ) ;
924
924
} )
925
- . catch ( fail )
925
+ . catch ( failTest )
926
926
. then ( done ) ;
927
927
} ) ;
928
928
@@ -953,7 +953,7 @@ describe('@gl parcoords', function() {
953
953
expect ( foundPixel ) . toEqual ( false ) ;
954
954
} ) ;
955
955
} )
956
- . catch ( fail )
956
+ . catch ( failTest )
957
957
. then ( done ) ;
958
958
} ) ;
959
959
@@ -985,7 +985,7 @@ describe('@gl parcoords', function() {
985
985
expect ( document . querySelectorAll ( '.gl-container' ) . length ) . toEqual ( 1 ) ;
986
986
expect ( gd . data . length ) . toEqual ( 2 ) ;
987
987
} )
988
- . catch ( fail )
988
+ . catch ( failTest )
989
989
. then ( done ) ;
990
990
} ) ;
991
991
@@ -1012,7 +1012,7 @@ describe('@gl parcoords', function() {
1012
1012
expect ( document . querySelectorAll ( '.gl-container' ) . length ) . toEqual ( 1 ) ;
1013
1013
expect ( gd . data . length ) . toEqual ( 2 ) ;
1014
1014
} )
1015
- . catch ( fail )
1015
+ . catch ( failTest )
1016
1016
. then ( done ) ;
1017
1017
} ) ;
1018
1018
@@ -1060,7 +1060,7 @@ describe('@gl parcoords', function() {
1060
1060
expect ( document . querySelectorAll ( '.gl-container' ) . length ) . toEqual ( 1 ) ;
1061
1061
expect ( gd . data . length ) . toEqual ( 1 ) ;
1062
1062
} )
1063
- . catch ( fail )
1063
+ . catch ( failTest )
1064
1064
. then ( done ) ;
1065
1065
} ) ;
1066
1066
} ) ;
@@ -1087,7 +1087,7 @@ describe('@gl parcoords', function() {
1087
1087
height : 400 ,
1088
1088
margin : { t : 100 , b : 100 , l : 100 , r : 100 }
1089
1089
} )
1090
- . catch ( fail )
1090
+ . catch ( failTest )
1091
1091
. then ( done ) ;
1092
1092
} ) ;
1093
1093
@@ -1162,7 +1162,7 @@ describe('@gl parcoords', function() {
1162
1162
expect ( newDashArray . split ( ',' ) . length ) . toBe ( 6 , newDashArray ) ;
1163
1163
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toBeCloseTo2DArray ( [ [ 0.75 , 2.25 ] , [ 2.75 , 4 ] ] ) ;
1164
1164
} )
1165
- . catch ( fail )
1165
+ . catch ( failTest )
1166
1166
. then ( done ) ;
1167
1167
} ) ;
1168
1168
@@ -1205,7 +1205,7 @@ describe('@gl parcoords', function() {
1205
1205
// TODO: ideally this would get clipped to [0, 9]...
1206
1206
expect ( gd . data [ 0 ] . dimensions [ 1 ] . constraintrange ) . toBeCloseToArray ( [ - 0.1020 , 9 ] ) ;
1207
1207
} )
1208
- . catch ( fail )
1208
+ . catch ( failTest )
1209
1209
. then ( done ) ;
1210
1210
} ) ;
1211
1211
@@ -1242,7 +1242,7 @@ describe('@gl parcoords', function() {
1242
1242
expect ( newDashArray . split ( ',' ) . length ) . toBe ( 6 , newDashArray ) ;
1243
1243
expect ( gd . data [ 0 ] . dimensions [ 0 ] . constraintrange ) . toBeCloseTo2DArray ( [ [ 0.75 , 1.25 ] , [ 2.75 , 4 ] ] ) ;
1244
1244
} )
1245
- . catch ( fail )
1245
+ . catch ( failTest )
1246
1246
. then ( done ) ;
1247
1247
} ) ;
1248
1248
} ) ;
0 commit comments