MCPcopy Create free account
hub / github.com/cogentcore/core / TestRenderButtonAlignment

Function TestRenderButtonAlignment

core/render_test.go:83–92  ·  view source on GitHub ↗

For https://github.com/cogentcore/core/issues/810

(t *testing.T)

Source from the content-addressed store, hash-verified

81
82// For https://github.com/cogentcore/core/issues/810
83func TestRenderButtonAlignment(t *testing.T) {
84 b := NewBody()
85 bt := NewButton(b).SetType(ButtonAction).SetIcon(icons.Square)
86 bt.Styler(func(s *styles.Style) {
87 s.Background = colors.Scheme.SurfaceContainerHighest
88 s.Border = styles.Border{}
89 s.MaxBorder = styles.Border{}
90 })
91 b.AssertRender(t, "render/button-alignment")
92}
93
94// For https://github.com/cogentcore/core/issues/810
95func TestRenderFrameAlignment(t *testing.T) {

Callers

nothing calls this directly

Calls 6

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewButtonFunction · 0.85
StylerMethod · 0.80
SetIconMethod · 0.65
SetTypeMethod · 0.45

Tested by

no test coverage detected