diff options
Diffstat (limited to 'tests/kubetestrunner.cpp')
-rw-r--r-- | tests/kubetestrunner.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/kubetestrunner.cpp b/tests/kubetestrunner.cpp index dd022091..99017a43 100644 --- a/tests/kubetestrunner.cpp +++ b/tests/kubetestrunner.cpp | |||
@@ -19,21 +19,10 @@ | |||
19 | #include <QtQuickTest/quicktest.h> | 19 | #include <QtQuickTest/quicktest.h> |
20 | #include <QQmlEngine> | 20 | #include <QQmlEngine> |
21 | #include <sink/test.h> | 21 | #include <sink/test.h> |
22 | #include "teststore.h" | ||
23 | |||
24 | static QObject *teststore(QQmlEngine *engine, QJSEngine *scriptEngine) | ||
25 | { | ||
26 | Q_UNUSED(engine) | ||
27 | Q_UNUSED(scriptEngine) | ||
28 | return new Kube::TestStore; | ||
29 | } | ||
30 | 22 | ||
31 | int main(int argc, char **argv) | 23 | int main(int argc, char **argv) |
32 | { | 24 | { |
33 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); | 25 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); |
34 | Sink::Test::initTest(); | ||
35 | |||
36 | qmlRegisterSingletonType<Kube::TestStore>("org.kube.test", 1, 0, "TestStore", teststore); | ||
37 | 26 | ||
38 | QTEST_ADD_GPU_BLACKLIST_SUPPORT | 27 | QTEST_ADD_GPU_BLACKLIST_SUPPORT |
39 | QTEST_SET_MAIN_SOURCE_PATH | 28 | QTEST_SET_MAIN_SOURCE_PATH |