(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestTextFieldClearClick(t *testing.T) { |
| 70 | b := NewBody() |
| 71 | tf := NewTextField(b).AddClearButton().SetText("Hello, world!") |
| 72 | b.AssertRender(t, "text-field/clear-click", func() { |
| 73 | tf.trailingIconButton.Send(events.Click) |
| 74 | assert.Equal(t, "", tf.Text()) |
| 75 | }) |
| 76 | } |
| 77 | |
| 78 | func TestTextFieldIcons(t *testing.T) { |
| 79 | b := NewBody() |
nothing calls this directly
no test coverage detected