fixing tests.
This commit is contained in:
parent
ee12481644
commit
d0182ac2b4
|
@ -57,7 +57,7 @@ func TestAnnotationSeriesMeasure(t *testing.T) {
|
|||
assert.False(box.IsZero())
|
||||
assert.Equal(-5.0, box.Top)
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,6 @@ func TestVectorRendererMeasureText(t *testing.T) {
|
|||
vr.SetFontSize(12.0)
|
||||
|
||||
w, h := vr.MeasureText("Ljp")
|
||||
assert.Equal(26, w)
|
||||
assert.Equal(21, w)
|
||||
assert.Equal(15, h)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user