Fix TestWebChannel::testAsyncObject


If signal is emitted directly, QSignalSpy::wait() is called too
late. In that case the correct information about emitted signal
can be checked with QSignalSpy::count().

Task-number: QTBUG-63152
Change-Id: I0c3da52ab17f9138ad1a7a17f5065b8a87911b8f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
commitd2f9396f048ef8fdd494626d92b3d7106fb10304
parentd05fc61c3953aee73bf3a912f30706ca092732f7
authorSami Nurmenniemi <sami.nurmenniemi@qt.io>
committerLars Knoll <lars.knoll@qt.io>
commit timeThu, 28 Dec 2017 16:42:34 +0000