@@ -4166,7 +4166,7 @@ describe('Test axes', function() {
4166
4166
_assert ( '(5,0]' , noWeekend ) ;
4167
4167
} ) ;
4168
4168
4169
- it ( 'should discard coords within break bounds - date time of day case' , function ( ) {
4169
+ it ( 'should discard coords within break bounds - date hour case' , function ( ) {
4170
4170
_calc ( {
4171
4171
x : [
4172
4172
'2020-01-02 08:00' , '2020-01-02 20:00' ,
@@ -4179,7 +4179,7 @@ describe('Test axes', function() {
4179
4179
} , {
4180
4180
xaxis : {
4181
4181
rangebreaks : [
4182
- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4182
+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
4183
4183
]
4184
4184
}
4185
4185
} ) ;
@@ -4193,7 +4193,7 @@ describe('Test axes', function() {
4193
4193
] ) ;
4194
4194
} ) ;
4195
4195
4196
- it ( 'should discard coords within break bounds - date time of day / high precision case' , function ( ) {
4196
+ it ( 'should discard coords within break bounds - date hour / high precision case' , function ( ) {
4197
4197
_calc ( {
4198
4198
x : [
4199
4199
'2020-01-03 17:00' ,
@@ -4207,7 +4207,7 @@ describe('Test axes', function() {
4207
4207
} , {
4208
4208
xaxis : {
4209
4209
rangebreaks : [
4210
- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4210
+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
4211
4211
]
4212
4212
}
4213
4213
} ) ;
@@ -4680,7 +4680,7 @@ describe('Test axes', function() {
4680
4680
} )
4681
4681
. then ( function ( ) {
4682
4682
gd . layout . xaxis . rangebreaks = [
4683
- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4683
+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
4684
4684
] ;
4685
4685
return Plotly . react ( gd , gd . data , gd . layout ) ;
4686
4686
} )
@@ -4706,7 +4706,7 @@ describe('Test axes', function() {
4706
4706
. then ( function ( ) {
4707
4707
gd . layout . xaxis . rangebreaks = [
4708
4708
{ pattern : 'day of week' , bounds : [ 5 , 1 ] , operation : '()' } ,
4709
- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4709
+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
4710
4710
] ;
4711
4711
return Plotly . react ( gd , gd . data , gd . layout ) ;
4712
4712
} )
@@ -4728,7 +4728,7 @@ describe('Test axes', function() {
4728
4728
} )
4729
4729
. then ( function ( ) {
4730
4730
gd . layout . xaxis . rangebreaks = [
4731
- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' } ,
4731
+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' } ,
4732
4732
{ pattern : 'day of week' , bounds : [ 5 , 1 ] , operation : '()' }
4733
4733
] ;
4734
4734
return Plotly . react ( gd , gd . data , gd . layout ) ;
@@ -4751,15 +4751,15 @@ describe('Test axes', function() {
4751
4751
} )
4752
4752
. then ( function ( ) {
4753
4753
gd . layout . xaxis . rangebreaks = [
4754
- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4754
+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
4755
4755
] ;
4756
4756
// N.B. xaxis.range[0] falls within a break
4757
4757
gd . layout . xaxis . autorange = false ;
4758
4758
gd . layout . xaxis . range = [ '2020-01-01 20:00:00' , '2020-01-04 20:00:00' ] ;
4759
4759
return Plotly . react ( gd , gd . data , gd . layout ) ;
4760
4760
} )
4761
4761
. then ( function ( ) {
4762
- _assert ( 'when range[0] falls within a break pattern (time of day case)' , 'x' , {
4762
+ _assert ( 'when range[0] falls within a break pattern (hour case)' , 'x' , {
4763
4763
rangebreaks : [
4764
4764
[ 1577908800000 , Lib . dateTime2ms ( '2020-01-02 08:00:00' ) ] ,
4765
4765
[ '2020-01-02 17:00:00' , '2020-01-03 08:00:00' ] . map ( Lib . dateTime2ms ) ,
@@ -4917,7 +4917,7 @@ describe('Test axes', function() {
4917
4917
]
4918
4918
} ] , {
4919
4919
xaxis : {
4920
- rangebreaks : [ { pattern : 'time of day ' , bounds : [ 17 , 8 ] } ]
4920
+ rangebreaks : [ { pattern : 'hour ' , bounds : [ 17 , 8 ] } ]
4921
4921
}
4922
4922
} )
4923
4923
. then ( function ( ) {
0 commit comments