From ee19a94ec59a0761265164bc9f35493cbe2188e8 Mon Sep 17 00:00:00 2001 From: vcaesar <vzvway@gmail.com> Date: Mon, 23 Mar 2020 15:34:33 -0400 Subject: [PATCH] add ShowAlert() test support --- robotgo_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/robotgo_test.go b/robotgo_test.go index 8e69752..acd2d00 100644 --- a/robotgo_test.go +++ b/robotgo_test.go @@ -149,3 +149,13 @@ func TestBitmap(t *testing.T) { tt.True(t, b) tt.NotNil(t, bit1) } + +func TestAlert(t *testing.T) { + go func() { + MilliSleep(100) + KeyTap("enter") + }() + + i := ShowAlert("t", "msg") + tt.Zero(t, i) +}