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

Function TestButtonTextIcon

core/button_test.go:32–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestButtonTextIcon(t *testing.T) {
33 b := NewBody()
34 NewButton(b).SetText("Download").SetIcon(icons.Download)
35 b.AssertRender(t, "button/text-icon")
36}
37
38func TestButtonClick(t *testing.T) {
39 b := NewBody()

Callers

nothing calls this directly

Calls 5

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewButtonFunction · 0.85
SetIconMethod · 0.65
SetTextMethod · 0.45

Tested by

no test coverage detected