(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestButtonShortcutWithTooltip(t *testing.T) { |
| 80 | b := NewBody() |
| 81 | bt := NewButton(b).SetShortcut("Command+S") |
| 82 | bt.SetTooltip("Test") |
| 83 | tt, _ := bt.WidgetTooltip(image.Point{}) |
| 84 | assert.Equal(t, "[Ctrl+S] Test", tt) |
| 85 | } |
| 86 | |
| 87 | func TestButtonShortcutKey(t *testing.T) { |
| 88 | b := NewBody() |
nothing calls this directly
no test coverage detected