(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestButtonShortcut(t *testing.T) { |
| 73 | b := NewBody() |
| 74 | bt := NewButton(b).SetShortcut("Command+S") |
| 75 | tt, _ := bt.WidgetTooltip(image.Point{}) |
| 76 | assert.Equal(t, "[Ctrl+S]", tt) |
| 77 | } |
| 78 | |
| 79 | func TestButtonShortcutWithTooltip(t *testing.T) { |
| 80 | b := NewBody() |
nothing calls this directly
no test coverage detected