tests pass
This commit is contained in:
parent
fa93bd8abb
commit
781a45d770
5 changed files with 35 additions and 5 deletions
|
|
@ -484,8 +484,12 @@ func TestChartE2ELine(t *testing.T) {
|
|||
assert := assert.New(t)
|
||||
|
||||
c := Chart{
|
||||
Height: 50,
|
||||
Width: 50,
|
||||
Height: 50,
|
||||
Width: 50,
|
||||
TitleStyle: Hidden(),
|
||||
XAxis: HideXAxis(),
|
||||
YAxis: HideYAxis(),
|
||||
YAxisSecondary: HideYAxis(),
|
||||
Canvas: Style{
|
||||
Padding: BoxZero,
|
||||
},
|
||||
|
|
@ -532,6 +536,10 @@ func TestChartE2ELineWithFill(t *testing.T) {
|
|||
Background: Style{
|
||||
Padding: BoxZero,
|
||||
},
|
||||
TitleStyle: Hidden(),
|
||||
XAxis: HideXAxis(),
|
||||
YAxis: HideYAxis(),
|
||||
YAxisSecondary: HideYAxis(),
|
||||
Series: []Series{
|
||||
ContinuousSeries{
|
||||
Style: Style{
|
||||
|
|
@ -542,6 +550,7 @@ func TestChartE2ELineWithFill(t *testing.T) {
|
|||
YValues: LinearRangeWithStep(0, 4, 1),
|
||||
},
|
||||
},
|
||||
Log: NewLogger(),
|
||||
}
|
||||
|
||||
assert.Equal(5, len(c.Series[0].(ContinuousSeries).XValues))
|
||||
|
|
@ -551,8 +560,6 @@ func TestChartE2ELineWithFill(t *testing.T) {
|
|||
err := c.Render(PNG, buffer)
|
||||
assert.Nil(err)
|
||||
|
||||
// do color tests ...
|
||||
|
||||
i, err := png.Decode(buffer)
|
||||
assert.Nil(err)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue