@@ -1906,7 +1906,7 @@ describe('Test axes', function() {
1906
1906
expect ( axIn . tickmode ) . toBeUndefined ( ) ;
1907
1907
} ) ;
1908
1908
1909
- it ( woTemplate + 'should set nticks iff tickmode=auto' , function ( ) {
1909
+ it ( woTemplate + 'should set nticks if tickmode=auto' , function ( ) {
1910
1910
var axIn = { } ;
1911
1911
var axOut = { } ;
1912
1912
mockSupplyDefaults ( axIn , axOut , 'linear' ) ;
@@ -1923,7 +1923,7 @@ describe('Test axes', function() {
1923
1923
expect ( axOut . nticks ) . toBe ( undefined ) ;
1924
1924
} ) ;
1925
1925
1926
- it ( woTemplate + 'should set tick0 and dtick iff tickmode=linear' , function ( ) {
1926
+ it ( woTemplate + 'should set tick0 and dtick if tickmode=linear' , function ( ) {
1927
1927
var axIn = { tickmode : 'auto' , tick0 : 1 , dtick : 1 } ;
1928
1928
var axOut = { } ;
1929
1929
mockSupplyDefaults ( axIn , axOut , 'linear' ) ;
@@ -2040,7 +2040,7 @@ describe('Test axes', function() {
2040
2040
} ) ;
2041
2041
} ) ;
2042
2042
2043
- it ( woTemplate + 'should set tickvals and ticktext iff tickmode=array' , function ( ) {
2043
+ it ( woTemplate + 'should set tickvals and ticktext if tickmode=array' , function ( ) {
2044
2044
var axIn = { tickmode : 'auto' , tickvals : [ 1 , 2 , 3 ] , ticktext : [ '4' , '5' , '6' ] } ;
2045
2045
var axOut = { } ;
2046
2046
mockSupplyDefaults ( axIn , axOut , 'linear' ) ;
@@ -5067,17 +5067,16 @@ describe('Test axes', function() {
5067
5067
. then ( function ( ) {
5068
5068
_assert ( 'base' , {
5069
5069
tickVals : [
5070
- '1970-01-01 08:00' ,
5071
- '1970-01-01 12:00' , '1970-01-01 16:00' ,
5072
- '1970-01-02 12:00' , '1970-01-02 16:00' ,
5073
- '1970-01-05 12:00' , '1970-01-05 16:00' ,
5074
- '1970-01-06 12:00' , '1970-01-06 16:00' ,
5075
- '1970-01-07 12:00' , '1970-01-07 16:00' ,
5076
- '1970-01-08 12:00' , '1970-01-08 16:00' ,
5077
- '1970-01-09 12:00' , '1970-01-09 16:00' ,
5078
- '1970-01-12 12:00' , '1970-01-12 16:00' ,
5079
- '1970-01-13 12:00' , '1970-01-13 16:00' ,
5080
- '1970-01-14 12:00' , '1970-01-14 16:00'
5070
+ '1970-01-01 08:00' , '1970-01-01 12:00' , '1970-01-01 16:00' ,
5071
+ '1970-01-02 08:00' , '1970-01-02 12:00' , '1970-01-02 16:00' ,
5072
+ '1970-01-05 08:00' , '1970-01-05 12:00' , '1970-01-05 16:00' ,
5073
+ '1970-01-06 08:00' , '1970-01-06 12:00' , '1970-01-06 16:00' ,
5074
+ '1970-01-07 08:00' , '1970-01-07 12:00' , '1970-01-07 16:00' ,
5075
+ '1970-01-08 08:00' , '1970-01-08 12:00' , '1970-01-08 16:00' ,
5076
+ '1970-01-09 08:00' , '1970-01-09 12:00' , '1970-01-09 16:00' ,
5077
+ '1970-01-12 08:00' , '1970-01-12 12:00' , '1970-01-12 16:00' ,
5078
+ '1970-01-13 08:00' , '1970-01-13 12:00' , '1970-01-13 16:00' ,
5079
+ '1970-01-14 08:00' , '1970-01-14 12:00' , '1970-01-14 16:00'
5081
5080
] . map ( Lib . dateTime2ms )
5082
5081
} ) ;
5083
5082
} )
@@ -5130,17 +5129,16 @@ describe('Test axes', function() {
5130
5129
. then ( function ( ) {
5131
5130
_assert ( '2-hour dtick' , {
5132
5131
tickVals : [
5133
- '1970-01-01 08:00' ,
5134
- '1970-01-01 10:00' , '1970-01-01 12:00' , '1970-01-01 14:00' , '1970-01-01 16:00' ,
5135
- '1970-01-02 10:00' , '1970-01-02 12:00' , '1970-01-02 14:00' , '1970-01-02 16:00' ,
5136
- '1970-01-05 10:00' , '1970-01-05 12:00' , '1970-01-05 14:00' , '1970-01-05 16:00' ,
5137
- '1970-01-06 10:00' , '1970-01-06 12:00' , '1970-01-06 14:00' , '1970-01-06 16:00' ,
5138
- '1970-01-07 10:00' , '1970-01-07 12:00' , '1970-01-07 14:00' , '1970-01-07 16:00' ,
5139
- '1970-01-08 10:00' , '1970-01-08 12:00' , '1970-01-08 14:00' , '1970-01-08 16:00' ,
5140
- '1970-01-09 10:00' , '1970-01-09 12:00' , '1970-01-09 14:00' , '1970-01-09 16:00' ,
5141
- '1970-01-12 10:00' , '1970-01-12 12:00' , '1970-01-12 14:00' , '1970-01-12 16:00' ,
5142
- '1970-01-13 10:00' , '1970-01-13 12:00' , '1970-01-13 14:00' , '1970-01-13 16:00' ,
5143
- '1970-01-14 10:00' , '1970-01-14 12:00' , '1970-01-14 14:00' , '1970-01-14 16:00'
5132
+ '1970-01-01 08:00' , '1970-01-01 10:00' , '1970-01-01 12:00' , '1970-01-01 14:00' , '1970-01-01 16:00' ,
5133
+ '1970-01-02 08:00' , '1970-01-02 10:00' , '1970-01-02 12:00' , '1970-01-02 14:00' , '1970-01-02 16:00' ,
5134
+ '1970-01-05 08:00' , '1970-01-05 10:00' , '1970-01-05 12:00' , '1970-01-05 14:00' , '1970-01-05 16:00' ,
5135
+ '1970-01-06 08:00' , '1970-01-06 10:00' , '1970-01-06 12:00' , '1970-01-06 14:00' , '1970-01-06 16:00' ,
5136
+ '1970-01-07 08:00' , '1970-01-07 10:00' , '1970-01-07 12:00' , '1970-01-07 14:00' , '1970-01-07 16:00' ,
5137
+ '1970-01-08 08:00' , '1970-01-08 10:00' , '1970-01-08 12:00' , '1970-01-08 14:00' , '1970-01-08 16:00' ,
5138
+ '1970-01-09 08:00' , '1970-01-09 10:00' , '1970-01-09 12:00' , '1970-01-09 14:00' , '1970-01-09 16:00' ,
5139
+ '1970-01-12 08:00' , '1970-01-12 10:00' , '1970-01-12 12:00' , '1970-01-12 14:00' , '1970-01-12 16:00' ,
5140
+ '1970-01-13 08:00' , '1970-01-13 10:00' , '1970-01-13 12:00' , '1970-01-13 14:00' , '1970-01-13 16:00' ,
5141
+ '1970-01-14 08:00' , '1970-01-14 10:00' , '1970-01-14 12:00' , '1970-01-14 14:00' , '1970-01-14 16:00'
5144
5142
] . map ( Lib . dateTime2ms )
5145
5143
} ) ;
5146
5144
} )
0 commit comments