mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add more key test code
This commit is contained in:
parent
38e5dc7bf7
commit
bd34490e34
@ -76,6 +76,19 @@ func TestMoveSmoothRelative(t *testing.T) {
|
|||||||
tt.Equal(t, 190, y)
|
tt.Equal(t, 190, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestKey(t *testing.T) {
|
||||||
|
e := KeyTap("v", "cmd")
|
||||||
|
tt.Empty(t, e)
|
||||||
|
|
||||||
|
e = KeyToggle("v", "up")
|
||||||
|
tt.Empty(t, e)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestTypeStr(t *testing.T) {
|
||||||
|
c := CharCodeAt("s", 0)
|
||||||
|
tt.Equal(t, 115, c)
|
||||||
|
}
|
||||||
|
|
||||||
func TestBitmap(t *testing.T) {
|
func TestBitmap(t *testing.T) {
|
||||||
bit := CaptureScreen()
|
bit := CaptureScreen()
|
||||||
tt.NotNil(t, bit)
|
tt.NotNil(t, bit)
|
||||||
|
Loading…
Reference in New Issue
Block a user