@@ -608,30 +608,30 @@ describe('config argument', function() {
608
608
gd = parent . childNodes [ 0 ] ;
609
609
}
610
610
611
- it ( 'should resize when the viewport width/height changes' , function ( done ) {
611
+ it ( '@flaky should resize when the viewport width/height changes' , function ( done ) {
612
612
fillParent ( 1 , 1 ) ;
613
613
Plotly . plot ( gd , data , { } , { responsive : true } )
614
614
. then ( testResponsive )
615
615
. then ( done ) ;
616
616
} ) ;
617
617
618
- it ( 'should still be responsive if the plot is edited' , function ( done ) {
618
+ it ( '@flaky should still be responsive if the plot is edited' , function ( done ) {
619
619
fillParent ( 1 , 1 ) ;
620
620
Plotly . plot ( gd , data , { } , { responsive : true } )
621
621
. then ( function ( ) { return Plotly . restyle ( gd , 'y[0]' , data [ 0 ] . y [ 0 ] + 2 ) ; } )
622
622
. then ( testResponsive )
623
623
. then ( done ) ;
624
624
} ) ;
625
625
626
- it ( 'should still be responsive if the plot is purged and replotted' , function ( done ) {
626
+ it ( '@flaky should still be responsive if the plot is purged and replotted' , function ( done ) {
627
627
fillParent ( 1 , 1 ) ;
628
628
Plotly . plot ( gd , data , { } , { responsive : true } )
629
629
. then ( function ( ) { return Plotly . newPlot ( gd , data , { } , { responsive : true } ) ; } )
630
630
. then ( testResponsive )
631
631
. then ( done ) ;
632
632
} ) ;
633
633
634
- it ( 'should only have one resize handler when plotted more than once' , function ( done ) {
634
+ it ( '@flaky should only have one resize handler when plotted more than once' , function ( done ) {
635
635
fillParent ( 1 , 1 ) ;
636
636
var cntWindowResize = 0 ;
637
637
window . addEventListener ( 'resize' , function ( ) { cntWindowResize ++ ; } ) ;
@@ -650,15 +650,15 @@ describe('config argument', function() {
650
650
. then ( done ) ;
651
651
} ) ;
652
652
653
- it ( 'should become responsive if configured as such via Plotly.react' , function ( done ) {
653
+ it ( '@flaky should become responsive if configured as such via Plotly.react' , function ( done ) {
654
654
fillParent ( 1 , 1 ) ;
655
655
Plotly . plot ( gd , data , { } , { responsive : false } )
656
656
. then ( function ( ) { return Plotly . react ( gd , data , { } , { responsive : true } ) ; } )
657
657
. then ( testResponsive )
658
658
. then ( done ) ;
659
659
} ) ;
660
660
661
- it ( 'should stop being responsive if configured as such via Plotly.react' , function ( done ) {
661
+ it ( '@flaky should stop being responsive if configured as such via Plotly.react' , function ( done ) {
662
662
fillParent ( 1 , 1 ) ;
663
663
Plotly . plot ( gd , data , { } , { responsive : true } )
664
664
// Check initial size
@@ -676,7 +676,7 @@ describe('config argument', function() {
676
676
} ) ;
677
677
678
678
// Testing fancier CSS layouts
679
- it ( 'should resize horizontally in a flexbox when responsive: true' , function ( done ) {
679
+ it ( '@flaky should resize horizontally in a flexbox when responsive: true' , function ( done ) {
680
680
parent . style . display = 'flex' ;
681
681
parent . style . flexDirection = 'row' ;
682
682
fillParent ( 1 , 2 , function ( ) {
@@ -688,7 +688,7 @@ describe('config argument', function() {
688
688
. then ( done ) ;
689
689
} ) ;
690
690
691
- it ( 'should resize vertically in a flexbox when responsive: true' , function ( done ) {
691
+ it ( '@flaky should resize vertically in a flexbox when responsive: true' , function ( done ) {
692
692
parent . style . display = 'flex' ;
693
693
parent . style . flexDirection = 'column' ;
694
694
fillParent ( 2 , 1 , function ( ) {
@@ -700,7 +700,7 @@ describe('config argument', function() {
700
700
. then ( done ) ;
701
701
} ) ;
702
702
703
- it ( 'should resize in both direction in a grid when responsive: true' , function ( done ) {
703
+ it ( '@flaky should resize in both direction in a grid when responsive: true' , function ( done ) {
704
704
var numCols = 2 , numRows = 2 ;
705
705
parent . style . display = 'grid' ;
706
706
parent . style . gridTemplateColumns = 'repeat(' + numCols + ', 1fr)' ;
@@ -712,7 +712,7 @@ describe('config argument', function() {
712
712
. then ( done ) ;
713
713
} ) ;
714
714
715
- it ( 'should provide a fixed non-zero width/height when autosize/responsive: true and container\' size is zero' , function ( done ) {
715
+ it ( '@flaky should provide a fixed non-zero width/height when autosize/responsive: true and container\' size is zero' , function ( done ) {
716
716
fillParent ( 1 , 1 , function ( ) {
717
717
this . style . display = 'inline-block' ;
718
718
this . style . width = null ;
@@ -740,7 +740,7 @@ describe('config argument', function() {
740
740
741
741
// The following test is to guarantee we're not breaking the existing (although maybe not ideal) behaviour.
742
742
// In a future version, one may prefer responsive/autosize:true winning over an explicit width/height when embedded in a webpage.
743
- it ( 'should use the explicitly provided width/height even if autosize/responsive:true' , function ( done ) {
743
+ it ( '@flaky should use the explicitly provided width/height even if autosize/responsive:true' , function ( done ) {
744
744
fillParent ( 1 , 1 , function ( ) {
745
745
this . style . width = '1000px' ;
746
746
this . style . height = '500px' ;
0 commit comments