@@ -1402,7 +1402,7 @@ describe('Test axes', function() {
14021402 }
14031403
14041404 function mockHoverText ( ax , x ) {
1405- var xCalc = ( ax . d2l_noadd || ax . d2c ) ( x ) ;
1405+ var xCalc = ( ax . d2l_noadd || ax . d2l ) ( x ) ;
14061406 var tickTextObj = Axes . tickText ( ax , xCalc , true ) ;
14071407 return tickTextObj . text ;
14081408 }
@@ -1433,7 +1433,7 @@ describe('Test axes', function() {
14331433 'Feb 12'
14341434 ] ;
14351435 expect ( textOut ) . toEqual ( expectedText ) ;
1436- expect ( mockHoverText ( ax , ax . d2c ( '1999-12-18 15:34:33.3' ) ) )
1436+ expect ( mockHoverText ( ax , '1999-12-18 15:34:33.3' ) )
14371437 . toBe ( 'Dec 18, 1999, 15:34' ) ;
14381438
14391439 ax = {
@@ -1454,7 +1454,7 @@ describe('Test axes', function() {
14541454 '00:00<br>Jan 6, 2000'
14551455 ] ;
14561456 expect ( textOut ) . toEqual ( expectedText ) ;
1457- expect ( mockHoverText ( ax , ax . d2c ( '2000-01-04 15:34:33.3' ) ) )
1457+ expect ( mockHoverText ( ax , '2000-01-04 15:34:33.3' ) )
14581458 . toBe ( 'Jan 4, 2000, 15:34:33' ) ;
14591459
14601460 ax = {
@@ -1475,9 +1475,9 @@ describe('Test axes', function() {
14751475 '00:00:02'
14761476 ] ;
14771477 expect ( textOut ) . toEqual ( expectedText ) ;
1478- expect ( mockHoverText ( ax , ax . d2c ( '2000-02-04 00:00:00.123456' ) ) )
1478+ expect ( mockHoverText ( ax , '2000-02-04 00:00:00.123456' ) )
14791479 . toBe ( 'Feb 4, 2000, 00:00:00.1235' ) ;
1480- expect ( mockHoverText ( ax , ax . d2c ( '2000-02-04 00:00:00' ) ) )
1480+ expect ( mockHoverText ( ax , '2000-02-04 00:00:00' ) )
14811481 . toBe ( 'Feb 4, 2000' ) ;
14821482 } ) ;
14831483
@@ -1500,9 +1500,9 @@ describe('Test axes', function() {
15001500 '00:05<br>Feb 12, 2000'
15011501 ] ;
15021502 expect ( textOut ) . toEqual ( expectedText ) ;
1503- expect ( mockHoverText ( ax , ax . d2c ( '2000-02-04 00:00:00.123456' ) ) )
1503+ expect ( mockHoverText ( ax , '2000-02-04 00:00:00.123456' ) )
15041504 . toBe ( 'Feb 4, 2000' ) ;
1505- expect ( mockHoverText ( ax , ax . d2c ( '2000-02-04 00:00:05.123456' ) ) )
1505+ expect ( mockHoverText ( ax , '2000-02-04 00:00:05.123456' ) )
15061506 . toBe ( 'Feb 4, 2000, 00:00:05' ) ;
15071507 } ) ;
15081508
@@ -1559,9 +1559,9 @@ describe('Test axes', function() {
15591559 '00:00:01<br>Jan 1, 2013'
15601560 ] ;
15611561 expect ( textOut ) . toEqual ( expectedText ) ;
1562- expect ( mockHoverText ( ax , ax . d2c ( '2012-01-01' ) ) )
1562+ expect ( mockHoverText ( ax , '2012-01-01' ) )
15631563 . toBe ( 'New year' ) ;
1564- expect ( mockHoverText ( ax , ax . d2c ( '2012-01-01 12:34:56.1234' ) ) )
1564+ expect ( mockHoverText ( ax , '2012-01-01 12:34:56.1234' ) )
15651565 . toBe ( 'Jan 1, 2012, 12:34:56' ) ;
15661566 } ) ;
15671567
@@ -1587,8 +1587,8 @@ describe('Test axes', function() {
15871587 // 10 and 0.1 are off scale
15881588 ] ;
15891589 expect ( textOut ) . toEqual ( expectedText , axType ) ;
1590- expect ( mockHoverText ( ax , ax . c2l ( 1 ) ) ) . toBe ( 'One' ) ;
1591- expect ( mockHoverText ( ax , ax . c2l ( 19.999 ) ) ) . toBe ( '19.999' ) ;
1590+ expect ( mockHoverText ( ax , 1 ) ) . toBe ( 'One' ) ;
1591+ expect ( mockHoverText ( ax , 19.999 ) ) . toBe ( '19.999' ) ;
15921592 } ) ;
15931593 } ) ;
15941594
0 commit comments