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

Function TestTreeReadOnly

core/tree_test.go:23–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestTreeReadOnly(t *testing.T) {
24 b := NewBody()
25
26 fr := NewFrame()
27 NewButton(fr)
28 NewText(fr)
29 NewButton(NewFrame(fr))
30
31 NewTree(b).SyncTree(fr).SetReadOnly(true)
32 b.AssertRender(t, "tree/read-only")
33}

Callers

nothing calls this directly

Calls 8

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewFrameFunction · 0.85
NewButtonFunction · 0.85
SyncTreeMethod · 0.80
NewTextFunction · 0.70
NewTreeFunction · 0.70
SetReadOnlyMethod · 0.45

Tested by

no test coverage detected