diff options
Diffstat (limited to 'tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp')
-rw-r--r-- | tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp index c244030..6996a6c 100644 --- a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp +++ b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp @@ -114,6 +114,10 @@ void tst_qmlgraphicswebview::cleanupTestCase() void tst_qmlgraphicswebview::checkNoErrors(const QmlComponent& component) { + // Wait until the component is ready + QTRY_VERIFY(component.isReady()); + + if (component.isError()) { QList<QmlError> errors = component.errors(); for (int ii = 0; ii < errors.count(); ++ii) { |