mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add keycode test support
This commit is contained in:
parent
4d5dc9d6e3
commit
5f5f208a43
1 changed files with 8 additions and 0 deletions
|
|
@ -122,6 +122,14 @@ func TestTypeStr(t *testing.T) {
|
|||
tt.Empty(t, e)
|
||||
}
|
||||
|
||||
func TestKeyCode(t *testing.T) {
|
||||
m := MouseMap["left"]
|
||||
tt.Equal(t, 1, m)
|
||||
|
||||
k := Keycode["1"]
|
||||
tt.Equal(t, 2, k)
|
||||
}
|
||||
|
||||
func TestBitmap(t *testing.T) {
|
||||
bit := CaptureScreen()
|
||||
tt.NotNil(t, bit)
|
||||
|
|
|
|||
Loading…
Reference in a new issue