| 1 | // Copyright (C) 2016 Paul Lemire <[email protected]> |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | |
| 5 | #include <QtTest/QTest> |
| 6 | #include <QObject> |
| 7 | #include <qmlscenereader.h> |
| 8 | |
| 9 | class tst_import3dcore : public QObject |
| 10 | { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | private Q_SLOTS: |
| 14 | |
| 15 | void checkQMLImports() |
| 16 | { |
| 17 | // GIVEN |
| 18 | QmlSceneReader sceneReader(QUrl("qrc:/3dcore.qml")); |
| 19 | |
| 20 | // THEN |
| 21 | QVERIFY(sceneReader.root() != nullptr); |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | QTEST_MAIN(tst_import3dcore) |
| 26 | |
| 27 | #include "tst_import3dcore.moc" |