Files
wxWidgets/tests
Vadim Zeitlin 50fc4eb1f3 Work around spurious Travis CI failures in WebView selection test
We can't rely on HasSelection() returning true immediately after calling
SelectAll() because this operation (as almost all the other ones) is
asynchronous with WebKit and might not have completed yet when we check
for the selection existence.

There doesn't seem to be any way to wait for its completion, so just
poll the selection state for some time before deciding that it hasn't
been updated. In practice, just a couple of ms is enough on a normal
machine, but wait up to 50ms on Travis just to be on the safe side.

Note that to reliably reproduce the problem locally it's enough to run
"taskset 1 ./test_gui -c Selection WebView", i.e. pin both the main and
WebKit processes to the same CPU.
2020-09-20 23:19:09 +02:00
..
2018-09-22 14:44:07 +02:00
2020-07-31 01:53:43 +02:00
2018-09-22 14:44:07 +02:00
2018-07-29 12:08:53 +02:00
2019-09-19 00:39:59 +02:00
2018-07-29 12:08:53 +02:00
2019-08-25 12:32:51 +02:00
2018-09-22 14:44:07 +02:00
2018-09-22 14:44:07 +02:00
2020-07-10 22:31:00 +01:00
2018-07-29 12:08:53 +02:00
2015-03-19 21:46:05 +01:00
2020-07-31 01:53:43 +02:00
2020-07-31 01:53:43 +02:00
2020-07-31 01:53:43 +02:00
2020-07-31 01:53:43 +02:00