mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-08-29 14:18:15 +02:00
go fmt
This commit is contained in:
parent
06ce0a7f9f
commit
966a1c5513
21 changed files with 568 additions and 586 deletions
|
@ -12,26 +12,25 @@ import (
|
|||
|
||||
func TestLinuxEditor_convertKey(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
args *gui.QKeyEvent
|
||||
want string
|
||||
name string
|
||||
args *gui.QKeyEvent
|
||||
want string
|
||||
}{
|
||||
{
|
||||
`convertKey() Linux LessThan modifier keys 1`,
|
||||
gui.NewQKeyEvent(core.QEvent__KeyPress, int(core.Qt__Key_Less), core.Qt__ShiftModifier | core.Qt__ControlModifier, "<", false, 1),
|
||||
gui.NewQKeyEvent(core.QEvent__KeyPress, int(core.Qt__Key_Less), core.Qt__ShiftModifier|core.Qt__ControlModifier, "<", false, 1),
|
||||
"<C-lt>",
|
||||
},
|
||||
{
|
||||
`convertKey() Linux LessThan modifier keys 2`,
|
||||
gui.NewQKeyEvent(core.QEvent__KeyPress, int(core.Qt__Key_Less), core.Qt__ShiftModifier | core.Qt__AltModifier, "<", false, 1),
|
||||
gui.NewQKeyEvent(core.QEvent__KeyPress, int(core.Qt__Key_Less), core.Qt__ShiftModifier|core.Qt__AltModifier, "<", false, 1),
|
||||
"<A-lt>",
|
||||
},
|
||||
{
|
||||
`convertKey() Linux LessThan modifier keys 3`,
|
||||
gui.NewQKeyEvent(core.QEvent__KeyPress, int(core.Qt__Key_Less), core.Qt__ShiftModifier | core.Qt__MetaModifier, "<", false, 1),
|
||||
gui.NewQKeyEvent(core.QEvent__KeyPress, int(core.Qt__Key_Less), core.Qt__ShiftModifier|core.Qt__MetaModifier, "<", false, 1),
|
||||
"<D-lt>",
|
||||
},
|
||||
|
||||
}
|
||||
e := &Editor{}
|
||||
e.InitSpecialKeys()
|
||||
|
@ -39,9 +38,9 @@ func TestLinuxEditor_convertKey(t *testing.T) {
|
|||
tests = append(
|
||||
tests,
|
||||
[]struct {
|
||||
name string
|
||||
args *gui.QKeyEvent
|
||||
want string
|
||||
name string
|
||||
args *gui.QKeyEvent
|
||||
want string
|
||||
}{
|
||||
{
|
||||
`convertKey() Linux special keys`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue