|
|
@ -378,8 +378,8 @@ describe('c3 chart axis', function () { |
|
|
|
var tick = chart.internal.main.select('.c3-axis-x').select('g.tick'), |
|
|
|
var tick = chart.internal.main.select('.c3-axis-x').select('g.tick'), |
|
|
|
tspans = tick.selectAll('tspan'), |
|
|
|
tspans = tick.selectAll('tspan'), |
|
|
|
expectedTickTexts = [ |
|
|
|
expectedTickTexts = [ |
|
|
|
'this is a very', |
|
|
|
'this is a very long', |
|
|
|
'long tick text on', |
|
|
|
'tick text on', |
|
|
|
'category axis' |
|
|
|
'category axis' |
|
|
|
], |
|
|
|
], |
|
|
|
expectedX = '0'; |
|
|
|
expectedX = '0'; |
|
|
@ -427,8 +427,8 @@ describe('c3 chart axis', function () { |
|
|
|
tspans = tick.selectAll('tspan'), |
|
|
|
tspans = tick.selectAll('tspan'), |
|
|
|
expectedTickTexts = [ |
|
|
|
expectedTickTexts = [ |
|
|
|
'this is a very long', |
|
|
|
'this is a very long', |
|
|
|
'tick text on', |
|
|
|
'tick text on category', |
|
|
|
'category axis' |
|
|
|
'axis' |
|
|
|
], |
|
|
|
], |
|
|
|
expectedX = '-9'; |
|
|
|
expectedX = '-9'; |
|
|
|
expect(tspans.size()).toBe(3); |
|
|
|
expect(tspans.size()).toBe(3); |
|
|
@ -479,8 +479,8 @@ describe('c3 chart axis', function () { |
|
|
|
var tick = chart.internal.main.select('.c3-axis-x').select('g.tick'), |
|
|
|
var tick = chart.internal.main.select('.c3-axis-x').select('g.tick'), |
|
|
|
tspans = tick.selectAll('tspan'), |
|
|
|
tspans = tick.selectAll('tspan'), |
|
|
|
expectedTickTexts = [ |
|
|
|
expectedTickTexts = [ |
|
|
|
'this is a very long tick text', |
|
|
|
'this is a very long tick text on', |
|
|
|
'on category axis' |
|
|
|
'category axis' |
|
|
|
], |
|
|
|
], |
|
|
|
expectedX = '-9'; |
|
|
|
expectedX = '-9'; |
|
|
|
expect(tspans.size()).toBe(2); |
|
|
|
expect(tspans.size()).toBe(2); |
|
|
|