@@ -4166,7 +4166,7 @@ describe('Test axes', function() {
41664166 _assert ( '(5,0]' , noWeekend ) ;
41674167 } ) ;
41684168
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 ( ) {
41704170 _calc ( {
41714171 x : [
41724172 '2020-01-02 08:00' , '2020-01-02 20:00' ,
@@ -4179,7 +4179,7 @@ describe('Test axes', function() {
41794179 } , {
41804180 xaxis : {
41814181 rangebreaks : [
4182- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4182+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
41834183 ]
41844184 }
41854185 } ) ;
@@ -4193,7 +4193,7 @@ describe('Test axes', function() {
41934193 ] ) ;
41944194 } ) ;
41954195
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 ( ) {
41974197 _calc ( {
41984198 x : [
41994199 '2020-01-03 17:00' ,
@@ -4207,7 +4207,7 @@ describe('Test axes', function() {
42074207 } , {
42084208 xaxis : {
42094209 rangebreaks : [
4210- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4210+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
42114211 ]
42124212 }
42134213 } ) ;
@@ -4680,7 +4680,7 @@ describe('Test axes', function() {
46804680 } )
46814681 . then ( function ( ) {
46824682 gd . layout . xaxis . rangebreaks = [
4683- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4683+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
46844684 ] ;
46854685 return Plotly . react ( gd , gd . data , gd . layout ) ;
46864686 } )
@@ -4706,7 +4706,7 @@ describe('Test axes', function() {
47064706 . then ( function ( ) {
47074707 gd . layout . xaxis . rangebreaks = [
47084708 { pattern : 'day of week' , bounds : [ 5 , 1 ] , operation : '()' } ,
4709- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4709+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
47104710 ] ;
47114711 return Plotly . react ( gd , gd . data , gd . layout ) ;
47124712 } )
@@ -4728,7 +4728,7 @@ describe('Test axes', function() {
47284728 } )
47294729 . then ( function ( ) {
47304730 gd . layout . xaxis . rangebreaks = [
4731- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' } ,
4731+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' } ,
47324732 { pattern : 'day of week' , bounds : [ 5 , 1 ] , operation : '()' }
47334733 ] ;
47344734 return Plotly . react ( gd , gd . data , gd . layout ) ;
@@ -4751,15 +4751,15 @@ describe('Test axes', function() {
47514751 } )
47524752 . then ( function ( ) {
47534753 gd . layout . xaxis . rangebreaks = [
4754- { pattern : 'time of day ' , bounds : [ 17 , 8 ] , operation : '()' }
4754+ { pattern : 'hour ' , bounds : [ 17 , 8 ] , operation : '()' }
47554755 ] ;
47564756 // N.B. xaxis.range[0] falls within a break
47574757 gd . layout . xaxis . autorange = false ;
47584758 gd . layout . xaxis . range = [ '2020-01-01 20:00:00' , '2020-01-04 20:00:00' ] ;
47594759 return Plotly . react ( gd , gd . data , gd . layout ) ;
47604760 } )
47614761 . 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' , {
47634763 rangebreaks : [
47644764 [ 1577908800000 , Lib . dateTime2ms ( '2020-01-02 08:00:00' ) ] ,
47654765 [ '2020-01-02 17:00:00' , '2020-01-03 08:00:00' ] . map ( Lib . dateTime2ms ) ,
@@ -4917,7 +4917,7 @@ describe('Test axes', function() {
49174917 ]
49184918 } ] , {
49194919 xaxis : {
4920- rangebreaks : [ { pattern : 'time of day ' , bounds : [ 17 , 8 ] } ]
4920+ rangebreaks : [ { pattern : 'hour ' , bounds : [ 17 , 8 ] } ]
49214921 }
49224922 } )
49234923 . then ( function ( ) {
0 commit comments