mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
io/router: don't panic for nil op.Ops arguements to Router.Frame
Fixes gio#306 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -220,6 +220,11 @@ func TestKeyFocusedInvisible(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func TestNoOps(t *testing.T) {
|
||||
r := new(Router)
|
||||
r.Frame(nil)
|
||||
}
|
||||
|
||||
func assertKeyEvent(t *testing.T, events []event.Event, expected bool, expectedInputs ...event.Event) {
|
||||
t.Helper()
|
||||
var evtFocus int
|
||||
|
||||
Reference in New Issue
Block a user