fixing tests.
This commit is contained in:
parent
ee12481644
commit
d0182ac2b4
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ func TestAnnotationSeriesMeasure(t *testing.T) {
|
||||||
assert.False(box.IsZero())
|
assert.False(box.IsZero())
|
||||||
assert.Equal(-5.0, box.Top)
|
assert.Equal(-5.0, box.Top)
|
||||||
assert.Equal(5.0, box.Left)
|
assert.Equal(5.0, box.Left)
|
||||||
assert.Equal(139.0, box.Right) //the top,left annotation sticks up 5px and out ~44px.
|
assert.Equal(145.0, box.Right) //the top,left annotation sticks up 5px and out ~44px.
|
||||||
assert.Equal(115.0, box.Bottom)
|
assert.Equal(115.0, box.Bottom)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,6 @@ func TestVectorRendererMeasureText(t *testing.T) {
|
||||||
vr.SetFontSize(12.0)
|
vr.SetFontSize(12.0)
|
||||||
|
|
||||||
w, h := vr.MeasureText("Ljp")
|
w, h := vr.MeasureText("Ljp")
|
||||||
assert.Equal(26, w)
|
assert.Equal(21, w)
|
||||||
assert.Equal(15, h)
|
assert.Equal(15, h)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue