summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/shared
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2015-07-14 02:37:26 -0700
committerSzabolcs David <davidsz@inf.u-szeged.hu>2016-03-25 10:53:54 +0000
commitb6dc12bbb5059441363dcea3bcae94d17da482ec (patch)
treefc15f08b7a31a05e739b6bee5756b5fb346bdb7e /tests/auto/quick/shared
parent963f90b7a07236d81d7bb65798c641556501ab10 (diff)
Move loadVisuallyCommitted signal to the test support API
Change-Id: I877bbd8bc5c710370f135a27bcd7f0f7c95a7292 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/shared')
-rw-r--r--tests/auto/quick/shared/util.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/quick/shared/util.h b/tests/auto/quick/shared/util.h
index 8f7a85f68..66b42d010 100644
--- a/tests/auto/quick/shared/util.h
+++ b/tests/auto/quick/shared/util.h
@@ -119,7 +119,16 @@ inline bool waitForLoadFailed(QQuickWebEngineView *webEngineView, int timeout =
inline bool waitForViewportReady(QQuickWebEngineView *webEngineView, int timeout = 10000)
{
- return waitForSignal(reinterpret_cast<QObject *>(webEngineView->experimental()), SIGNAL(loadVisuallyCommitted()), timeout);
+#ifdef ENABLE_QML_TESTSUPPORT_API
+ return waitForSignal(reinterpret_cast<QObject *>(webEngineView->testSupport()), SIGNAL(loadVisuallyCommitted()), timeout);
+#else
+ Q_UNUSED(webEngineView)
+ Q_UNUSED(timeout)
+ qFatal("Test Support API is disabled. The result is not reliable.\
+ Use the following command to build Test Support module and rebuild WebEngineView API:\
+ qmake -r WEBENGINE_CONFIG+=testsupport && make");
+ return false;
+#endif
}
#endif /* UTIL_H */