(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func TestBoxModel(t *testing.T) { |
| 19 | RunTest(t, "boxmodel", 300, 300, func(pc *Context) { |
| 20 | pabg := colors.Uniform(colors.White) |
| 21 | s := styles.NewStyle() |
| 22 | s.Color = colors.Uniform(colors.Black) |
| 23 | s.Background = colors.Uniform(colors.Lightblue) |
| 24 | s.Border.Style.Set(styles.BorderSolid) |
| 25 | s.Border.Width.Set(units.Dp(5)) |
| 26 | s.Border.Color.Set(colors.Uniform(colors.Red)) |
| 27 | s.Border.Radius = styles.BorderRadiusFull |
| 28 | s.ComputeActualBackground(pabg) |
| 29 | s.ToDots() |
| 30 | |
| 31 | sz := s.BoxSpace().Size().Add(math32.Vec2(200, 100)) |
| 32 | pc.DrawStandardBox(s, math32.Vec2(50, 100), sz, pabg) |
| 33 | }) |
| 34 | } |
| 35 | |
| 36 | func TestBoxShadow(t *testing.T) { |
| 37 | RunTest(t, "boxshadow", 300, 300, func(pc *Context) { |
nothing calls this directly
no test coverage detected