(t *testing.T)
| 83 | } |
| 84 | |
| 85 | func TestBorderStyle(t *testing.T) { |
| 86 | for _, typ := range styles.BorderStylesValues() { |
| 87 | RunTest(t, filepath.Join("border-styles", strcase.ToKebab(typ.String())), 300, 300, func(pc *Context) { |
| 88 | s := styles.NewStyle() |
| 89 | s.Background = colors.Uniform(colors.Lightgray) |
| 90 | s.Border.Style.Set(typ) |
| 91 | s.Border.Width.Set(units.Dp(10)) |
| 92 | s.Border.Color.Set(colors.Uniform(colors.Blue)) |
| 93 | s.Border.Radius.Set(units.Dp(50)) |
| 94 | s.ToDots() |
| 95 | |
| 96 | sz := s.BoxSpace().Size().Add(math32.Vec2(200, 100)) |
| 97 | pc.DrawStandardBox(s, math32.Vec2(50, 100), sz, colors.Uniform(colors.White)) |
| 98 | }) |
| 99 | } |
| 100 | } |
nothing calls this directly
no test coverage detected