File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2600,6 +2600,26 @@ describe('bar hover', function() {
2600
2600
} ) ;
2601
2601
} ) ;
2602
2602
} ) ;
2603
+
2604
+ describe ( 'gantt chart using milliseconds from base' , function ( ) {
2605
+ beforeAll ( function ( done ) {
2606
+ gd = createGraphDiv ( ) ;
2607
+
2608
+ var mock = Lib . extendDeep ( { } , require ( '@mocks/bar-with-milliseconds.json' ) ) ;
2609
+
2610
+ Plotly . newPlot ( gd , mock . data , mock . layout )
2611
+ . catch ( failTest )
2612
+ . then ( done ) ;
2613
+ } ) ;
2614
+
2615
+ it ( 'should display the correct bar length passed in milliseconds from base' , function ( ) {
2616
+ var out = _hover ( gd , 0.5 , 0.75 , 'y' ) ;
2617
+
2618
+ var xEnd = out . style [ 2 ] ;
2619
+ expect ( xEnd ) . not . toBe ( 1580670000000 ) ;
2620
+ expect ( xEnd ) . toBe ( 1580688000000 ) ;
2621
+ } ) ;
2622
+ } ) ;
2603
2623
} ) ;
2604
2624
2605
2625
describe ( 'Text templates on bar traces:' , function ( ) {
You can’t perform that action at this time.
0 commit comments