mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-30 22:13:54 +00:00
add keycode test support
This commit is contained in:
parent
4d5dc9d6e3
commit
5f5f208a43
@ -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 New Issue
Block a user