Skip to content

Commit ee19a94

Browse files
committed
add ShowAlert() test support
1 parent d3c96e4 commit ee19a94

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

robotgo_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,13 @@ func TestBitmap(t *testing.T) {
149149
tt.True(t, b)
150150
tt.NotNil(t, bit1)
151151
}
152+
153+
func TestAlert(t *testing.T) {
154+
go func() {
155+
MilliSleep(100)
156+
KeyTap("enter")
157+
}()
158+
159+
i := ShowAlert("t", "msg")
160+
tt.Zero(t, i)
161+
}

0 commit comments

Comments
 (0)