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

Function TestTextFieldPasswordClick

core/textfield_test.go:55–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestTextFieldPasswordClick(t *testing.T) {
56 b := NewBody()
57 tf := NewTextField(b).SetTypePassword().SetText("my password")
58 b.AssertRender(t, "text-field/password-click", func() {
59 tf.trailingIconButton.Send(events.Click)
60 })
61}
62
63func TestTextFieldClear(t *testing.T) {
64 b := NewBody()

Callers

nothing calls this directly

Calls 6

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewTextFieldFunction · 0.85
SetTypePasswordMethod · 0.80
SetTextMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected