Also use WaitForEventAt() in Grid::SortClick test case
Abandon this test too if the mouse moves for whatever reason.
This commit is contained in:
parent
8218e31418
commit
216b5a4b23
1 changed files with 4 additions and 4 deletions
|
|
@ -662,10 +662,10 @@ TEST_CASE_METHOD(GridTestCase, "Grid::SortClick", "[grid]")
|
||||||
wxYield();
|
wxYield();
|
||||||
|
|
||||||
sim.MouseClick();
|
sim.MouseClick();
|
||||||
WaitFor("mouse click to be processed", [&]() {
|
if ( !WaitForEventAt(pos, "mouse click to be processed", [&]() {
|
||||||
return sort.GetCount() != 0;
|
return sort.GetCount() != 0;
|
||||||
});
|
}) )
|
||||||
|
return;
|
||||||
CHECK(sort.GetCount() == 1);
|
CHECK(sort.GetCount() == 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue