(t *testing.T)
| 326 | } |
| 327 | |
| 328 | func TestTextBox(t *testing.T) { |
| 329 | c := New(100, 100) |
| 330 | ctx := NewContext(c) |
| 331 | font, err := LoadFontFile("resources/DejaVuSerif.ttf", FontRegular) |
| 332 | if err != nil { |
| 333 | t.Fatal(err) |
| 334 | } |
| 335 | face := font.Face(12, Black) |
| 336 | ctx.DrawText(0, 0, NewTextBox(face, "\ntext", 100, 100, Left, Top, nil)) |
| 337 | ctx.DrawText(0, 0, NewTextBox(face, "text\n\ntext2", 100, 100, Left, Top, nil)) |
| 338 | } |
nothing calls this directly
no test coverage detected