Skip to content

Commit

Permalink
Also test simple case
Browse files Browse the repository at this point in the history
  • Loading branch information
ole108 committed Nov 5, 2024
1 parent f26945b commit cd71d5b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions dialog/color_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,8 @@ func TestColorDialog_Buttons(t *testing.T) {
expectedCalled: true,
expectedColored: false,
},
"confirmSimple": {
action: func(d *ColorPickerDialog, w fyne.Window) {
test.FocusNext(w.Canvas()) // advanced accordion
test.FocusNext(w.Canvas()) // dismiss button
test.FocusNext(w.Canvas()) // confirm button
w.Canvas().Focused().TypedKey(&fyne.KeyEvent{Name: fyne.KeySpace})
},
advanced: false,
expectedCalled: true,
expectedColored: true,
},
"dismissSimple": {
action: func(d *ColorPickerDialog, w fyne.Window) {
test.FocusNext(w.Canvas()) // advanced accordion
test.FocusNext(w.Canvas()) // dismiss button
w.Canvas().Focused().TypedKey(&fyne.KeyEvent{Name: fyne.KeySpace})
},
Expand All @@ -154,7 +142,7 @@ func TestColorDialog_Buttons(t *testing.T) {
called = true
colored = c != nil
}, w)
d.Advanced = true
d.Advanced = tt.advanced
d.Refresh()
d.Show()
tt.action(d, w)
Expand Down

0 comments on commit cd71d5b

Please sign in to comment.