diff --git a/tests/controls/spinctrldbltest.cpp b/tests/controls/spinctrldbltest.cpp index 4406fa5ae2..dcc6d09e08 100644 --- a/tests/controls/spinctrldbltest.cpp +++ b/tests/controls/spinctrldbltest.cpp @@ -123,6 +123,7 @@ void SpinCtrlDoubleTestCase::Wrap() wxUIActionSimulator sim; m_spin->SetFocus(); + wxYield(); sim.Char(WXK_DOWN); @@ -203,6 +204,7 @@ void SpinCtrlDoubleTestCase::Increment() wxUIActionSimulator sim; m_spin->SetFocus(); + wxYield(); sim.Char(WXK_UP); diff --git a/tests/controls/spinctrltest.cpp b/tests/controls/spinctrltest.cpp index 1ef3068a14..037a46918a 100644 --- a/tests/controls/spinctrltest.cpp +++ b/tests/controls/spinctrltest.cpp @@ -125,6 +125,7 @@ void SpinCtrlTestCase::Arrows() wxUIActionSimulator sim; m_spin->SetFocus(); + wxYield(); sim.Char(WXK_UP); @@ -154,6 +155,7 @@ void SpinCtrlTestCase::Wrap() wxUIActionSimulator sim; m_spin->SetFocus(); + wxYield(); sim.Char(WXK_DOWN);