(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestChooserEditableAllowNewTextFieldClick(t *testing.T) { |
| 125 | b := NewBody() |
| 126 | b.Styler(func(s *styles.Style) { |
| 127 | s.Min.Set(units.Em(20), units.Em(10)) |
| 128 | }) |
| 129 | ch := NewChooser(b).SetEditable(true).SetAllowNew(true).SetStrings("Newest", "Oldest", "Popular") |
| 130 | b.AssertRenderScreen(t, "chooser/editable-allow-new-text-field-click", func() { |
| 131 | ch.textField.HandleEvent(events.NewKey(events.KeyChord, 'O', 0, 0)) |
| 132 | }, func() { |
| 133 | ch.textField.Send(events.Click) |
| 134 | }) |
| 135 | } |
| 136 | |
| 137 | func TestChooserChange(t *testing.T) { |
| 138 | b := NewBody() |
nothing calls this directly
no test coverage detected