diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-11-02 13:54:48 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-11-06 10:01:53 +0000 |
commit | 271b2970a13a82e4ff5293b177d0606303d0190c (patch) | |
tree | 7764062afa9f461253f36b133887d76da8b31823 /tests/auto/widgets/qwebenginepage | |
parent | ceb57828780ddc14e3a6b2ece5e0a4676340b4a3 (diff) |
add dummy positioning plugin
The QtPositioning plugin loader only loads plugins that are marked as
testable whenever it detects that a Qt autotest is running.
We now provide our own very simple positioning plugin that always
provides the same location: the western beacon of port entrance
Warnemünde.
Change-Id: I747188dc261ba47c10056ad50754bb686e75c783
Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/qwebenginepage')
-rw-r--r-- | tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp index ffd8ccba7..8b7f71365 100644 --- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp +++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp @@ -288,6 +288,15 @@ void tst_QWebEnginePage::cleanupFiles() void tst_QWebEnginePage::initTestCase() { cleanupFiles(); // In case there are old files from previous runs + + // Set custom path since the CI doesn't install test plugins. + // Stolen from qtlocation/tests/auto/positionplugintest. + QString searchPath = QCoreApplication::applicationDirPath(); +#ifdef Q_OS_WIN + searchPath += QStringLiteral("/.."); +#endif + searchPath += QStringLiteral("/../../../plugins"); + QCoreApplication::addLibraryPath(searchPath); } void tst_QWebEnginePage::cleanupTestCase() |